Skip to content

Commit 63849cc

Browse files
committed
Safer setting of mason ensure_installed
1 parent 6f13107 commit 63849cc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

config/nvim/lua/plugins/plugins.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ return {
6767

6868
{
6969
"williamboman/mason.nvim",
70-
opts = {
71-
ensure_installed = {
70+
opts = function(_, opts)
71+
-- add tsx and treesitter
72+
vim.list_extend(opts.ensure_installed, {
7273
"bash-language-server",
7374
"clang-format",
7475
"clangd",
@@ -99,8 +100,9 @@ return {
99100
"yamlfmt",
100101
"yamllint",
101102
"yaml-language-server",
102-
},
103-
},
103+
})
104+
return opts
105+
end,
104106
},
105107

106108
{

0 commit comments

Comments
 (0)