This commit is contained in:
newbie 2024-01-06 18:44:41 +08:00
parent 6d0417c208
commit 8f0996aaa9
2 changed files with 13 additions and 2 deletions

11
lua/lsp/go.lua Normal file
View File

@ -0,0 +1,11 @@
return {
settings = {
gopls = {
ui = {
completion = {
usePlaceholders = true,
},
},
},
}
}

View File

@ -14,6 +14,7 @@ return {
require 'lspconfig'.pyright.setup(require('lsp.pyright'))
require 'lspconfig'.jsonls.setup {}
require 'lspconfig'.yamlls.setup(require('lsp.yaml'))
require 'lspconfig'.gopls.setup(require('lsp.go'))
G.map({
@ -47,8 +48,7 @@ return {
"lua_ls",
"jsonls",
"yamlls",
"dockerls",
"docker_compose_language_service"
"gopls"
}
})
end