aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/nvim-lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin/nvim-lsp.vim')
-rw-r--r--.vim/after/plugin/nvim-lsp.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/.vim/after/plugin/nvim-lsp.vim b/.vim/after/plugin/nvim-lsp.vim
index d36ed3d..dec2a48 100644
--- a/.vim/after/plugin/nvim-lsp.vim
+++ b/.vim/after/plugin/nvim-lsp.vim
@@ -3,19 +3,19 @@ if !has('nvim')
endif
packadd nvim-lspconfig
-packadd cmp-nvim-lsp
+" packadd cmp-nvim-lsp
packadd symbols-outline.nvim
packadd lsp_signature.nvim
lua <<EOF
local lspconfig = require 'lspconfig'
-local cmp_nvim_lsp = require 'cmp_nvim_lsp'
+-- local cmp_nvim_lsp = require 'cmp_nvim_lsp'
local symbols_outline = require 'symbols-outline'
local lsp_signature = require 'lsp_signature'
-local capabilities = vim.lsp.protocol.make_client_capabilities()
-capabilities = cmp_nvim_lsp.update_capabilities(capabilities)
+-- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..
+-- local capabilities = require('cmp_nvim_lsp').default_capabilities()
local opts = { noremap = true, silent = true }
@@ -59,7 +59,7 @@ local servers = { 'clangd', 'gopls' , 'gdscript', 'pylsp' }
for _, lsp in pairs(servers) do
lspconfig[lsp].setup{
on_attach = on_attach,
- capabilities = capabilities,
+ -- capabilities = capabilities,
}
end