End of config for now

This commit is contained in:
2023-12-30 18:35:52 +01:00
parent c6fc077654
commit 9d87a5985d
21 changed files with 490 additions and 131 deletions

View File

@@ -1,7 +1,7 @@
--- Ensure plugin is avaiable
local ok, wichkey = pcall(require, "which-key")
if not ok then
return
return
end
--- Global options
@@ -10,17 +10,29 @@ vim.o.timeoutlen = 300
--- Add description to leader group
wichkey.register({
n = {
name = "NoHighLight",
},
e = {
name = "NvimTree",
},
f = {
name = "Telescope"
},
n = {
name = "NoHighLight",
},
e = {
name = "NvimTree",
},
f = {
name = "Telescope",
},
l = {
name = "Lsp",
},
s = {
name = "Treesitter",
},
b = {
name = "Bufferline",
},
t = {
name = "Table",
},
}, { prefix = "<leader>" })
--- Override keymap
local km = vim.keymap.set
km('n', '<C-s>', ':WhichKey<cr>', { desc = "Which-key" })
km("n", "<C-s>", ":WhichKey<cr>", { desc = "Which-key" })