feat: add golang support
This commit is contained in:
parent
ae73753c5b
commit
a5592824d1
3 changed files with 5 additions and 2 deletions
|
@ -3,6 +3,7 @@ local options = {
|
|||
bash = { "shfmt" },
|
||||
css = { "prettier" },
|
||||
json = { "prettier" },
|
||||
go = { "goimports", "gofmt" },
|
||||
html = { "prettier" },
|
||||
lua = { "stylua" },
|
||||
markdown = { "prettier" },
|
||||
|
|
|
@ -7,7 +7,7 @@ local capabilities = configs.capabilities
|
|||
local lspconfig = require "lspconfig"
|
||||
|
||||
-- if you just want default config for the servers then put them in a table
|
||||
local servers = { "html", "cssls", "tsserver", "yamlls", "ansiblels", "bashls", "rls" }
|
||||
local servers = { "html", "cssls", "tsserver", "yamlls", "ansiblels", "bashls", "rls", "gopls" }
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
|
|
|
@ -24,13 +24,14 @@ return {
|
|||
"bash-language-server",
|
||||
"shfmt",
|
||||
"shellcheck",
|
||||
"ansible-language-server@1.2.1",
|
||||
"ansible-language-server",
|
||||
"ansible-lint",
|
||||
"yaml-language-server",
|
||||
"yamllint",
|
||||
"yamlfmt",
|
||||
"dockerfile-language-server",
|
||||
"prettier",
|
||||
"gopls",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -40,6 +41,7 @@ return {
|
|||
ensure_installed = {
|
||||
"vim",
|
||||
"lua",
|
||||
"go",
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
|
|
Loading…
Reference in a new issue