feat(nvim): improve/add keybindings

This commit is contained in:
Moritz Böhme 2023-04-10 15:14:04 +02:00
parent 5fc963c537
commit 2af3432410
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 24 additions and 14 deletions

View file

@ -1,12 +1,10 @@
require("which-key").register({
f = {
name = "file/find",
f = { "<cmd>Telescope find_files<cr>", "Find files" },
b = { "<cmd>Telescope buffers<cr>", "Find buffers" },
r = { "<cmd>Telescope oldfiles<cr>", "Find recent files" },
},
s = {
name = "search",
l = { "<cmd>Telescope current_buffer_fuzzy_find<cr>", "Search lines" },
g = { "<cmd>Telescope live_grep<cr>", "Live grep" },
c = { "<cmd>Telescope command_history<cr>", "Command history" },
@ -17,4 +15,8 @@ require("which-key").register({
s = { "<cmd>Telescope lsp_document_symbols<cr>", "Symbols (Document)" },
S = { "<cmd>Telescope lsp_workspace_symbols<cr>", "Symbols (Workspace)" },
},
g = {
c = { "<cmd>Telescope git_commits<cr>", "Commits" },
s = { "<cmd>Telescope git_status<cr>", "Status" },
},
}, { prefix = "<leader>" })

View file

@ -1,7 +1,4 @@
require("telescope").load_extension("zoxide")
require("which-key").register({
f = {
name = "file/find",
z = { "<cmd>Telescope zoxide list<cr>", "Find location (Zoxide)" },
},
}, { prefix = "<leader>" })
z = { "<cmd>Telescope zoxide list<cr>", "Find location (Zoxide)" },
}, { prefix = "<leader>f" })