feat(nvim): improve/add keybindings
This commit is contained in:
parent
5fc963c537
commit
2af3432410
4 changed files with 24 additions and 14 deletions
|
|
@ -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>" })
|
||||
|
|
|
|||
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue