which-key added back in
This commit is contained in:
parent
dc9536eb56
commit
697fb497f0
5 changed files with 77 additions and 33 deletions
|
@ -2,6 +2,6 @@ return {
|
|||
"uga-rosa/ccc.nvim",
|
||||
event = "BufRead",
|
||||
keys = {
|
||||
{ "<leader>,cp", ":CccPick <CR>", desc = "Color Picker" },
|
||||
{ "<leader>,p", ":CccPick <CR>", desc = "Color Picker" },
|
||||
},
|
||||
}
|
||||
|
|
31
lua/plugins/which-key.lua
Normal file
31
lua/plugins/which-key.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 250
|
||||
end,
|
||||
opts = {
|
||||
window = {
|
||||
border = "single",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local wk = require("which-key")
|
||||
wk.setup(opts)
|
||||
|
||||
wk.register({
|
||||
["<leader>b"] = { name = "Buffers" },
|
||||
["<leader>,"] = { name = "Miscellaneous Tools" },
|
||||
["<leader>c"] = { name = "Copilot" },
|
||||
["<leader>f"] = { name = "Find [Telescope]" },
|
||||
["<leader>fs"] = { name = "Find in Scratches [Telescope]" },
|
||||
["<leader>g"] = { name = "Git" },
|
||||
["<leader>l"] = { name = "LSP" },
|
||||
["<leader>lf"] = { name = "LSP Find" },
|
||||
["<leader>Q"] = { name = "+Q Quit and remove session" },
|
||||
["<leader>s"] = { name = "Scratch Files" },
|
||||
["<leader>t"] = { name = "Tabs" },
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue