nvim: remove deprecated function

This commit is contained in:
dogeystamp 2024-06-10 14:23:41 -04:00
parent 09d0809e1f
commit 474852db24
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -114,7 +114,7 @@ keymap("gR", "<cmd>TroubleToggle lsp_references<cr>")
------
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 <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')