nvimrc: Fix deprecated method
This commit is contained in:
parent
7fc8896b35
commit
404d303368
4
nvimrc
4
nvimrc
|
@ -734,7 +734,7 @@ end
|
||||||
|
|
||||||
-- Go
|
-- Go
|
||||||
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
capabilities.textDocument.completion.completionItem.resolveSupport = {
|
capabilities.textDocument.completion.completionItem.resolveSupport = {
|
||||||
properties = {
|
properties = {
|
||||||
|
@ -744,8 +744,6 @@ capabilities.textDocument.completion.completionItem.resolveSupport = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require('cmp_nvim_lsp').update_capabilities(capabilities)
|
|
||||||
|
|
||||||
nvim_lsp.gopls.setup{
|
nvim_lsp.gopls.setup{
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
|
|
Loading…
Reference in New Issue