add untracked files
This commit is contained in:
26
lua/config/which-key.lua
Normal file
26
lua/config/which-key.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
--- Ensure plugin is avaiable
|
||||
local ok, wichkey = pcall(require, "which-key")
|
||||
if not ok then
|
||||
return
|
||||
end
|
||||
|
||||
--- Global options
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
|
||||
--- Add description to leader group
|
||||
wichkey.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" })
|
||||
Reference in New Issue
Block a user