From 0cb027d148d88b16e1555abdf1565a716eb719db Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Sat, 13 Nov 2021 14:54:36 +0100 Subject: [PATCH] pass more stuff to completion.on_attach (doesn't fix anything) --- init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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