Adding a lot of plugin
This commit is contained in:
21
lua/lazy/plugins/which-key.lua
Normal file
21
lua/lazy/plugins/which-key.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user