From 474852db241f391f63063a4f76f3392dd623d750 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 10 Jun 2024 14:23:41 -0400 Subject: [PATCH] nvim: remove deprecated function --- src/.config/nvim/lua/coding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')