mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-08-09 04:14:51 +02:00
enc: config default golang
This commit is contained in:
parent
a7ae61e8af
commit
0d0de22c7b
4 changed files with 46 additions and 12 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue