Only install goimports if go is available

This commit is contained in:
Tim Huizinga 2025-06-03 15:47:18 +02:00
parent 8026ec51d9
commit ffeb4d6f45

View File

@ -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",