diff --git a/src/.config/nvim/lua/coding.lua b/src/.config/nvim/lua/coding.lua index b1f5dcf..a022b68 100644 --- a/src/.config/nvim/lua/coding.lua +++ b/src/.config/nvim/lua/coding.lua @@ -114,7 +114,7 @@ keymap("gR", "TroubleToggle lsp_references") ------ vim.cmd.packadd("nvim-lspconfig") local on_attach = function(client, bufnr) - local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end + local function buf_set_option(name, value) vim.api.nvim_set_option_value(name, value, { buf=bufnr }) end -- Enable completion triggered by buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')