summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp/keymaps.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-14 23:50:45 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-14 23:50:45 +0200
commit5d81720c3313fd590d4fe5057931aad96903974c (patch)
tree57d721397aa11cfce3e6a68784321629b61920e9 /fnl/plugins/lsp/keymaps.fnl
parent2ea97661a3564c02ac984c3e1280c4b8070dffb2 (diff)
Add format in visual mode instead of lsp mod format
Diffstat (limited to 'fnl/plugins/lsp/keymaps.fnl')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl4
1 files changed, 4 insertions, 0 deletions
diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl
index 5ab4f49..6a3544a 100644
--- a/fnl/plugins/lsp/keymaps.fnl
+++ b/fnl/plugins/lsp/keymaps.fnl
@@ -24,6 +24,10 @@
:<leader>e
"<cmd>lua vim.lsp.buf.format { async = true }<cr>"
{:desc :Format}]
+ [:v
+ :<leader>e
+ "<cmd>lua vim.lsp.buf.format { async = true }<cr>"
+ {:desc :Format}]
[:n
:<leader>i
"<cmd>lua vim.lsp.codelens.run()<cr>"