neovim: update config to ensure tools are installed

This commit is contained in:
Gabriel Augendre 2024-02-19 20:40:45 +01:00
parent ab9f724c28
commit 36d8ad6e5d

View file

@ -1,9 +1,24 @@
local plugins = { local plugins = {
{
"nvim-treesitter/nvim-treesitter", -- grammars
opts = {
ensure_installed = {
"go",
"lua",
"python",
},
auto_install = true,
},
},
{ {
"williamboman/mason.nvim", -- auto install tools "williamboman/mason.nvim", -- auto install tools
opts = { opts = {
ensure_installed = { ensure_installed = {
"lua-language-server",
"gopls", "gopls",
"gofumpt",
"golangci-lint",
"goimports",
}, },
}, },
}, },
@ -40,7 +55,7 @@ local plugins = {
end, end,
}, },
{ {
"jose-elias-alvarez/null-ls.nvim", -- custom format on save "nvimtools/none-ls.nvim", -- custom format on save
ft = "go", ft = "go",
opts = function() opts = function()
return require "custom.configs.null-ls" return require "custom.configs.null-ls"