Almost rewrote my entire config
This commit is contained in:
parent
47d704ad01
commit
c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,16 +1,27 @@
|
|||
local wk = require("which-key")
|
||||
local M = {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
}
|
||||
|
||||
local M = {}
|
||||
function M.config()
|
||||
local wk = require("which-key")
|
||||
|
||||
function M.setup()
|
||||
wk.setup({
|
||||
-- triggers = { "<leader>", "d", "y", "q", "z", "g", "c" },
|
||||
triggers = {},
|
||||
show_help = false,
|
||||
show_keys = false
|
||||
triggers = { "<leader>", "d", "y", "q", "z", "g", "c" },
|
||||
show_help = true,
|
||||
show_keys = true,
|
||||
})
|
||||
|
||||
wk.register({ ["<leader>l"] = { name = "Local commands" } })
|
||||
wk.register({
|
||||
["<leader>"] = {
|
||||
f = { name = "[F]iles" },
|
||||
g = { name = "[G]o to" },
|
||||
r = { name = "[R]ename / [R]eplace / [R]eload" },
|
||||
l = { name = "[L]ocal" },
|
||||
w = { name = "[W]orkspace" },
|
||||
v = "which_key_ignore",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue