add go language server
This commit is contained in:
parent
fefb7f752c
commit
b1e02001c7
1 changed files with 15 additions and 0 deletions
|
@ -99,6 +99,21 @@ lua require'lspconfig'.tsserver.setup{ on_attach=require'completion'.on_attach }
|
||||||
lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach }
|
lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach }
|
||||||
lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach }
|
lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach }
|
||||||
lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach }
|
lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach }
|
||||||
|
lua require'lspconfig'.texlab.setup{ on_attach=require'completion'.on_attach }
|
||||||
|
lua <<EOF
|
||||||
|
lspconfig = require "lspconfig"
|
||||||
|
lspconfig.gopls.setup {
|
||||||
|
cmd = {"gopls", "serve"},
|
||||||
|
settings = {
|
||||||
|
gopls = {
|
||||||
|
analyses = {
|
||||||
|
unusedparams = true,
|
||||||
|
},
|
||||||
|
staticcheck = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
set completeopt=menuone,noinsert,noselect
|
set completeopt=menuone,noinsert,noselect
|
||||||
set shortmess+=c
|
set shortmess+=c
|
||||||
|
|
Loading…
Add table
Reference in a new issue