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 Jan 31, 2025
1 parent ece1995 commit fd63b56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: yamlfmt
uses: yk-lab/[email protected]

lint:
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 14 additions & 0 deletions 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 @@ -120,6 +133,7 @@ return {
"black",
"docker-compose-language-service",
"dockerls",
"gopls",
"hadolint",
"isort",
"lua_ls",
Expand Down

0 comments on commit fd63b56

Please sign in to comment.