enc: config default golang

This commit is contained in:
asep.komarudin 2024-06-29 11:07:33 +07:00
parent a7ae61e8af
commit 0d0de22c7b
4 changed files with 46 additions and 12 deletions

View file

@ -81,15 +81,15 @@ if pcode.active_php_config then
table.insert(pcode.null_ls_ensure_installed, "phpcs")
end
-- run if golang config true
if pcode.active_golang_config then
local lst_ts = { "go", "gomod", "gosum", "gotmpl", "gowork" }
for _, ts in pairs(lst_ts) do
table.insert(pcode.treesitter_ensure_installed, ts)
end
table.insert(pcode.mason_ensure_installed, "gopls")
table.insert(pcode.null_ls_ensure_installed, "ast_grep")
table.insert(pcode.null_ls_ensure_installed, "gofumpt")
end
-- if pcode.active_golang_config then
-- local lst_ts = { "go", "gomod", "gosum", "gotmpl", "gowork" }
-- for _, ts in pairs(lst_ts) do
-- table.insert(pcode.treesitter_ensure_installed, ts)
-- end
-- table.insert(pcode.mason_ensure_installed, "gopls")
-- table.insert(pcode.null_ls_ensure_installed, "ast_grep")
-- table.insert(pcode.null_ls_ensure_installed, "gofumpt")
-- end
-- run if python config true
if pcode.active_python_config then
-- table.insert(pcode.treesitter_ensure_installed, "python")