[LSP] go - Support gopls through LspInstall. (#177)

This commit is contained in:
James Walmsley 2021-03-28 10:19:58 +01:00 committed by GitHub
parent 16b669f1ce
commit 8ce7e8d800
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -48,6 +48,7 @@ require('lsp')
require('lsp.clangd')
require('lsp.lua-ls')
require('lsp.bash-ls')
require('lsp.go-ls')
require('lsp.js-ts-ls')
require('lsp.python-ls')
require('lsp.json-ls')

4
lua/lsp/go-ls.lua Normal file
View file

@ -0,0 +1,4 @@
require'lspconfig'.gopls.setup{
cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
on_attach = require'lsp'.common_on_attach
}