pass more stuff to completion.on_attach (doesn't fix anything)

This commit is contained in:
Daniel Knuettel 2021-11-13 14:54:36 +01:00
parent 1185288ee9
commit 0cb027d148

View File

@ -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