Skip to content

Commit

Permalink
Add Go lsp and config
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck committed Jun 9, 2024
1 parent 3ed330e commit 1704410
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lua/plugins/lsp-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ return {
})
lspconfig.dockerls.setup({ capabilities = capabilities })
lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
lspconfig.gopls.setup({
capabilities = capabilities,
filetypes = { "go", "gomod", "gowork", "gotmpl" },
settings = {
gopls = {
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedparams = true,
},
},
},
})
lspconfig.lua_ls.setup({ capabilities = capabilities })
lspconfig.pyright.setup({
capabilities = capabilities,
Expand Down Expand Up @@ -66,12 +79,13 @@ return {
"WhoIsSethDaniel/mason-tool-installer.nvim",
opts = {
ensure_installed = {
"ansiblels", -- 1.2.1 on arch
"ansiblels", -- 1.2.1 on arch
-- { "ansible-lint", version = "6.10.0", auto_update = false }, -- ubuntu 20.04
"ansible-lint", -- 24.2.0 on arch
"black",
"docker-compose-language-service",
"dockerls",
"gopls",
"hadolint",
"isort",
"lua_ls",
Expand Down

0 comments on commit 1704410

Please sign in to comment.