This commit is contained in:
abs3nt 2023-03-03 00:46:52 -08:00
parent 04a7eec6d2
commit d9df819e66

View File

@ -14,12 +14,9 @@ return {
{ {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
config = function() config = function()
require 'nvim-treesitter.configs'.setup({ require 'nvim-treesitter.configs'.setup {
auto_install = true, auto_install = true,
highlight = { }
enable = true,
}
})
end end
}, },
@ -29,6 +26,10 @@ return {
ft = { "go", "gomod" }, ft = { "go", "gomod" },
config = function() config = function()
vim.g.go_fmt_command = "gofumpt" vim.g.go_fmt_command = "gofumpt"
vim.g.go_highlight_types = 1
vim.g.go_highlight_fields = 1
vim.g.go_highlight_functions = 1
vim.g.go_highlight_function_calls = 1
vim.g.go_metalinter_command = 'golangci-lint' vim.g.go_metalinter_command = 'golangci-lint'
end end
}, },