summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-02-27 22:48:51 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-02-27 22:48:51 +0100
commitedc418f7e00b8bbf58c71c9d8609e4233cfb3d67 (patch)
treedefd1f650e90355f2d562a2d2ca56dc91ed46046 /fnl
parent5e238d4e6def544e974a7b0cbbca3d633b7507b4 (diff)
Add lsp hover
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl11
1 files changed, 3 insertions, 8 deletions
diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl
index 36f039a..73cbf94 100644
--- a/fnl/plugins/lsp/keymaps.fnl
+++ b/fnl/plugins/lsp/keymaps.fnl
@@ -15,14 +15,9 @@
"<cmd>lua vim.diagnostic.open_float()<CR>"
{:desc :Diagnostics}]
[:n :gs "<cmd>lua vim.lsp.buf.signature_help()<CR>" {:desc :Signature}]
- [:n
- :gh
- "<cmd>lua vim.lsp.buf.code_action()<cr>"
- {:desc "Code Action"}]
- [:n
- :gb
- "<cmd>lua vim.lsp.codelens.run()<cr>"
- {:desc "Code Lens"}]
+ [:n :gh "<cmd>lua vim.lsp.buf.code_action()<cr>" {:desc "Code Action"}]
+ [:n :gb "<cmd>lua vim.lsp.codelens.run()<cr>" {:desc "Code Lens"}]
+ [:n :K "<cmd>lua vim.lsp.hover()<cr>" {:desc "Hover documentation"}]
[:n :<leader>li :<cmd>LspInfo<cr> {:desc "Lsp Info"}]])
(fn on-attach [buffer]