improve tree

This commit is contained in:
2023-12-29 23:55:02 +01:00
parent bd5d8ac62f
commit f54c1fca3b
13 changed files with 10 additions and 206 deletions

View File

@@ -1,31 +1,4 @@
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" })
end
return {
"folke/which-key.nvim",
event = "VeryLazy",
config = config
}