add go language server

This commit is contained in:
Jidbo 2021-05-31 18:26:32 +02:00
parent fefb7f752c
commit b1e02001c7
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA

View file

@ -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'.vuels.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 shortmess+=c