summaryrefslogtreecommitdiff
path: root/fnl/config/which-key.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-28 01:15:36 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-09-28 01:15:36 +0200
commitace838537718a4085655e5eb8d147cb20bf2fe2d (patch)
treef1537731e288f210663e378e393e14c44b67f3cd /fnl/config/which-key.fnl
parentb510c78da86c6b30b95039cc31d5a3267ee7e395 (diff)
Remove legacy lsp keymaps
Diffstat (limited to 'fnl/config/which-key.fnl')
-rw-r--r--fnl/config/which-key.fnl10
1 files changed, 1 insertions, 9 deletions
diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl
index 5cba39c..eeea0da 100644
--- a/fnl/config/which-key.fnl
+++ b/fnl/config/which-key.fnl
@@ -48,6 +48,7 @@
:h ["<cmd>lua require('harpoon.ui').nav_prev()<cr>"
"Harpoon Prev"]
:t ["<cmd>Telescope harpoon marks<cr>" "Search Files"]
+ :v ["<cmd>lua vim.lsp.buf.rename()<cr>" :Rename]
:r ["<cmd>lua require('harpoon.ui').toggle_quick_menu()<cr>"
"Harpoon UI"]})
@@ -92,18 +93,9 @@
(def- lsp {:name :LSP
:a ["<cmd>lua vim.lsp.buf.code_action()<cr>" "Code Action"]
- :d ["<cmd>Telescope lsp_document_diagnostics<cr>"
- "Document Diagnostics"]
- :w ["<cmd>Telescope lsp_workspace_diagnostics<cr>"
- "Workspace Diagnostics"]
:f ["<cmd>lua vim.lsp.buf.format { async = true }<cr>" :Format]
:i [:<cmd>LspInfo<cr> :Info]
- :j ["<cmd>lua vim.lsp.diagnostic.goto_next({buffer=0})<CR>"
- "Next Diagnostic"]
- :k ["<cmd>lua vim.lsp.diagnostic.goto_prev({buffer=0})<cr>"
- "Prev Diagnostic"]
:l ["<cmd>lua vim.lsp.codelens.run()<cr>" "CodeLens Action"]
- :q ["<cmd>lua vim.lsp.diagnostic.set_loclist()<cr>" :Quickfix]
:r ["<cmd>lua vim.lsp.buf.rename()<cr>" :Rename]
:s ["<cmd>Telescope lsp_document_symbols<cr>" "Document Symbols"]
:S ["<cmd>Telescope lsp_dynamic_workspace_symbols<cr>"