From 07ededb06cef5b0f8bc2fe1de98bc643f4cb4d13 Mon Sep 17 00:00:00 2001 From: pegasust Date: Tue, 22 Nov 2022 01:09:48 +0000 Subject: [PATCH] actually fix default_capabilities https://github.com/hrsh7th/cmp-nvim-lsp/issues/36 --- neovim/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neovim/init.lua b/neovim/init.lua index 815210a..49e05e6 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -86,7 +86,9 @@ Plug('nvim-telescope/telescope-file-browser.nvim') -- cmp: auto-complete/suggestions Plug('neovim/nvim-lspconfig') -- built-in LSP configurations Plug('hrsh7th/cmp-nvim-lsp') +Plug('hrsh7th/cmp-nvim-path') Plug('hrsh7th/cmp-buffer') +Plug('hrsh7th/cmp-cmdline') Plug('hrsh7th/nvim-cmp') Plug('onsails/lspkind-nvim') Plug('yioneko/nvim-yati') -- hopefully fixes Python indentation auto-correct from Tree-sitter @@ -490,11 +492,12 @@ cmp.setup { sources = cmp.config.sources { { name = 'nvim_lsp' }, { name = 'luasnip' }, + { name = 'buffer' }, -- { name = 'cmp_tabnine' }, }, } -- nvim-cmp supports additional completion capabilities -local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities()) +local capabilities = require('cmp_nvim_lsp').default_capabilities() -- local tabnine = require('cmp_tabnine.config') -- tabnine.setup({ -- max_lines = 1000,