summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r--fnl/plugins/lsp/keymaps.fnl4
-rw-r--r--fnl/plugins/lsp/lspconfig.fnl4
2 files changed, 4 insertions, 4 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)))))
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl
index 5ca84fb..b29f1b1 100644
--- a/fnl/plugins/lsp/lspconfig.fnl
+++ b/fnl/plugins/lsp/lspconfig.fnl
@@ -4,8 +4,8 @@
(vim.api.nvim_create_autocmd :LspAttach
{:callback (fn [args]
(let [keymaps (require :plugins.lsp.keymaps)
- bufnr (. args :buf)]
- (keymaps.on-attach bufnr)))}))
+ buffer (. args :buf)]
+ (keymaps.on-attach buffer)))}))
(fn capabilities []
(let [cmp-lsp (require :cmp_nvim_lsp)]