summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-13 01:49:50 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-13 01:49:50 +0100
commitc41f25fa0d1c882d3dd484d10666b5341dec5c92 (patch)
tree28e73c347b930daa78c14d60e8a651ec2bdb1d54 /fnl/plugins/lsp
parent8c3692f3ab6e8bbe148a21f34ad5962951462766 (diff)
Refactor
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}