Reorganize plugins dir

This commit is contained in:
2023-12-21 01:33:15 +01:00
parent 9a2bca5f6d
commit 309da905e9
15 changed files with 29 additions and 3 deletions

21
lua/plugins/which-key.lua Normal file
View 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,
}