summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp/keymaps.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-14 12:04:06 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-14 12:04:06 +0200
commit29cad43659e0d2d0dfa407a7bcca5abd9a75fa5b (patch)
tree4a058893cf71bc121ce2c1184ab3f3045803a33a /fnl/plugins/lsp/keymaps.fnl
parente1e608afd6abc8220e23ddaad13408a84d9f6b02 (diff)
Rename to buffer
Diffstat (limited to 'fnl/plugins/lsp/keymaps.fnl')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/fnl/plugins/lsp/keymaps.fnl b/fnl/plugins/lsp/keymaps.fnl
index dfa0545..5ab4f49 100644
--- a/fnl/plugins/lsp/keymaps.fnl
+++ b/fnl/plugins/lsp/keymaps.fnl
@@ -30,10 +30,10 @@
{:desc "Code Lens"}]
[:n :<leader>li :<cmd>LspInfo<cr> {:desc "Lsp Info"}]])
-(fn on-attach [bufnr]
+(fn on-attach [buffer]
(each [_ mapping (ipairs mappings)]
(match mapping
- [mode key cmd desc] (vim.api.nvim_buf_set_keymap bufnr mode key cmd
+ [mode key cmd desc] (vim.api.nvim_buf_set_keymap buffer mode key cmd
(vim.tbl_extend :force
opts desc)))))