Initial Commit
This commit is contained in:
commit
bcb5556f7c
10 changed files with 166 additions and 0 deletions
19
lua/config/keys.lua
Normal file
19
lua/config/keys.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
require("which-key").add({
|
||||
{ "<leader>c", group = "code" },
|
||||
{ "<leader>cd", vim.diagnostic.open_float, name = "diagnostic" },
|
||||
|
||||
{ "<leader>e", Snacks.explorer.open, name = "explorer" },
|
||||
|
||||
{ "<leader>f", group = "find" },
|
||||
{ "<leader>ff", Snacks.picker.files, name = "files" },
|
||||
|
||||
{ "<leader>u", group = "ui" },
|
||||
{ "<leader>ut", Snacks.picker.colorschemes, name = "colorschemes" },
|
||||
|
||||
{ "g", group = "goto" },
|
||||
{ "gd", vim.lsp.buf.definition, name = "definition" },
|
||||
{ "gr", Snacks.picker.lsp_references, nowait = true, name = "references" },
|
||||
})
|
||||
|
||||
Snacks.toggle.diagnostics():map("<leader>ud")
|
||||
Snacks.toggle.inlay_hints():map("<leader>ui")
|
||||
Loading…
Add table
Add a link
Reference in a new issue