Only install goimports if go is available
This commit is contained in:
parent
8026ec51d9
commit
ffeb4d6f45
|
@ -17,7 +17,12 @@ local ensure_installed = {
|
||||||
"neocmake",
|
"neocmake",
|
||||||
-- Formatter
|
-- Formatter
|
||||||
"clang-format",
|
"clang-format",
|
||||||
"goimports",
|
{
|
||||||
|
"goimports",
|
||||||
|
condition = function()
|
||||||
|
return vim.fn.executable("go") > 0
|
||||||
|
end,
|
||||||
|
},
|
||||||
"ruff",
|
"ruff",
|
||||||
"prettierd",
|
"prettierd",
|
||||||
"stylua",
|
"stylua",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user