feat(nvim): add go configurations
This commit is contained in:
parent
a64c619cea
commit
5cf651c06c
4 changed files with 18 additions and 0 deletions
|
@ -29,6 +29,7 @@ in
|
||||||
home.file."${config.xdg.configHome}/nvim/spell/fr.utf-8.sug".source = nvim-spell-fr-utf8-suggestions;
|
home.file."${config.xdg.configHome}/nvim/spell/fr.utf-8.sug".source = nvim-spell-fr-utf8-suggestions;
|
||||||
|
|
||||||
home.file."${config.xdg.configHome}/nvim/lsp/bash.lua".source = ./files/lsp/bash.lua;
|
home.file."${config.xdg.configHome}/nvim/lsp/bash.lua".source = ./files/lsp/bash.lua;
|
||||||
|
home.file."${config.xdg.configHome}/nvim/lsp/go.lua".source = ./files/lsp/go.lua;
|
||||||
home.file."${config.xdg.configHome}/nvim/lsp/helm.lua".source = ./files/lsp/helm.lua;
|
home.file."${config.xdg.configHome}/nvim/lsp/helm.lua".source = ./files/lsp/helm.lua;
|
||||||
home.file."${config.xdg.configHome}/nvim/lsp/lua.lua".source = ./files/lsp/lua.lua;
|
home.file."${config.xdg.configHome}/nvim/lsp/lua.lua".source = ./files/lsp/lua.lua;
|
||||||
home.file."${config.xdg.configHome}/nvim/lsp/nills.lua".source = ./files/lsp/nills.lua;
|
home.file."${config.xdg.configHome}/nvim/lsp/nills.lua".source = ./files/lsp/nills.lua;
|
||||||
|
@ -47,6 +48,7 @@ in
|
||||||
# LSP Servers
|
# LSP Servers
|
||||||
clang-tools
|
clang-tools
|
||||||
hadolint
|
hadolint
|
||||||
|
gopls
|
||||||
helm-ls
|
helm-ls
|
||||||
lua-language-server
|
lua-language-server
|
||||||
marksman
|
marksman
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
-- LSP configuration
|
-- LSP configuration
|
||||||
vim.lsp.enable('bash')
|
vim.lsp.enable('bash')
|
||||||
|
vim.lsp.enable('go')
|
||||||
vim.lsp.enable('helm')
|
vim.lsp.enable('helm')
|
||||||
vim.lsp.enable('lua')
|
vim.lsp.enable('lua')
|
||||||
vim.lsp.enable('nills')
|
vim.lsp.enable('nills')
|
||||||
|
|
14
modules/home-manager/cli/neovim/files/lsp/go.lua
Normal file
14
modules/home-manager/cli/neovim/files/lsp/go.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
return {
|
||||||
|
cmd = { "gopls" },
|
||||||
|
filetypes = { "go" },
|
||||||
|
root_markers = { "go.mod", ".git" },
|
||||||
|
settings = {
|
||||||
|
gopls = {
|
||||||
|
analyses = {
|
||||||
|
unusedparams = true,
|
||||||
|
},
|
||||||
|
staticcheck = true,
|
||||||
|
gofumpt = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -7,6 +7,7 @@ require("conform").setup({
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
yaml = {"yamlfmt"},
|
yaml = {"yamlfmt"},
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
|
go = { "gofmt" },
|
||||||
["_"] = { "trim_whitespace" },
|
["_"] = { "trim_whitespace" },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue