diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-14 12:04:06 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-14 12:04:06 +0200 |
commit | 29cad43659e0d2d0dfa407a7bcca5abd9a75fa5b (patch) | |
tree | 4a058893cf71bc121ce2c1184ab3f3045803a33a /fnl | |
parent | e1e608afd6abc8220e23ddaad13408a84d9f6b02 (diff) |
Rename to buffer
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/lsp/keymaps.fnl | 4 | ||||
-rw-r--r-- | fnl/plugins/lsp/lspconfig.fnl | 4 |
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)] |