Files
nvim/lua/plugins/which-key.lua

22 lines
388 B
Lua

function conf ()
--- Global options
vim.o.timeout = true
vim.o.timeoutlen = 300
--- Override keymap
local km = vim.keymap.set
km('n', '<C-s>', ':WhichKey<cr>', { desc = "Which-key" })
local wk = require("which-key")
wk.register({
n = {
name = "nohl",
},
}, { prefix = "<leader>" })
end
return {
"folke/which-key.nvim",
event = "VeryLazy",
config = conf,
}