diff --git a/init.vim b/init.vim index 64c4acf..6c5ddb8 100644 --- a/init.vim +++ b/init.vim @@ -149,7 +149,7 @@ local nvim_lsp = require('lspconfig') -- This basically enables autocompletion local on_attach = function(_, bufnr) vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') - require'completion'.on_attach() + require'completion'.on_attach(_, bufnr) -- also attach lsp-status nvim_lsp_status.on_attach(_, bufnr) end