Autocommit 2023-07-25 11:07:37

This commit is contained in:
2023-12-25 11:07:37 +01:00
parent 309da905e9
commit ee6b24ebb6
13 changed files with 70 additions and 46 deletions

View File

@@ -1,21 +1,31 @@
function conf ()
local function config()
--- Ensure plugin is avaiable
local wk = require("which-key")
--- Global options
vim.o.timeout = true
vim.o.timeoutlen = 300
--- Add description to leader group
wk.register({
n = {
name = "NoHighLight",
},
e = {
name = "NvimTree",
},
f = {
name = "Telescope"
},
}, { prefix = "<leader>" })
--- 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,
config = config
}