summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl5
1 files changed, 1 insertions, 4 deletions
diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl
index 9b95140..cd62073 100644
--- a/fnl/plugins/lsp/keymaps.fnl
+++ b/fnl/plugins/lsp/keymaps.fnl
@@ -10,12 +10,9 @@
[:n :gl "<cmd>lua vim.diagnostic.open_float()<CR>"]
[:n :gs "<cmd>lua vim.lsp.buf.signature_help()<CR>"]])
-(fn buf-set-keymap [bufnr mode key cmd opts]
- (vim.api.nvim_buf_set_keymap bufnr mode key cmd opts))
-
(fn on-attach [bufnr]
(each [_ mapping (ipairs mappings)]
(match mapping
- [mode key cmd] (buf-set-keymap bufnr mode key cmd opts))))
+ [mode key cmd] (vim.api.nvim_buf_set_keymap bufnr mode key cmd opts))))
{: on-attach}