Skip to content

Commit

Permalink
fix: don't use both goimports and gci
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Oct 7, 2023
1 parent 1276db9 commit 04cc040
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nvim-lazyvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ return {
"gopls", -- lsp
"golangci-lint-langserver", -- lsp
"gofumpt", -- formatter
"goimports", -- formatter
-- "goimports", -- formatter
"gci", -- formatter, replaces goimports
"golangci-lint", -- linter (its binary is required by golanci-lint-langserver?)
-- "gomodifytags", -- code actions
-- "impl", -- code actions
Expand Down Expand Up @@ -164,7 +165,7 @@ return {
-- https://www.lazyvim.org/extras/formatting/conform
lua = { "stylua" },
sh = { "shfmt" },
go = { "gofumpt", "goimports", "gci" },
go = { "gofumpt", "gci" }, -- goimports is not needed as gci is used
protobuf = { "buf" },
python = { "isort", "black" },
rust = { "rustfmt" },
Expand Down

0 comments on commit 04cc040

Please sign in to comment.