fix(extra): Fix lost ensured_installed issue after 12.5.0

This commit is contained in:
HyeJun Kim 2024-06-06 03:52:52 +09:00
parent e0a0123b18
commit 6b26df2c16
15 changed files with 37 additions and 54 deletions

View file

@ -11,9 +11,8 @@ return {
{ {
"nvim-treesitter", "nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "angular", "scss" }) vim.list_extend(opts.ensure_installed, { "angular", "scss" })
end
end, end,
}, },

View file

@ -16,9 +16,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "astro" }) vim.list_extend(opts.ensure_installed, { "astro" })
end
end, end,
}, },

View file

@ -17,9 +17,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "cpp" }) vim.list_extend(opts.ensure_installed, { "cpp" })
end
end, end,
}, },
@ -121,9 +120,8 @@ return {
"williamboman/mason.nvim", "williamboman/mason.nvim",
optional = true, optional = true,
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "codelldb" }) vim.list_extend(opts.ensure_installed, { "codelldb" })
end
end, end,
}, },
opts = function() opts = function()

View file

@ -8,9 +8,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "cmake" }) vim.list_extend(opts.ensure_installed, { "cmake" })
end
end, end,
}, },
{ {

View file

@ -8,9 +8,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "dockerfile" }) vim.list_extend(opts.ensure_installed, { "dockerfile" })
end
end, end,
}, },
{ {

View file

@ -10,9 +10,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "haskell" }) vim.list_extend(opts.ensure_installed, { "haskell" })
end
end, end,
}, },

View file

@ -10,9 +10,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "json5" }) vim.list_extend(opts.ensure_installed, { "json5" })
end
end, end,
}, },

View file

@ -10,9 +10,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "c_sharp" }) vim.list_extend(opts.ensure_installed, { "c_sharp" })
end
end, end,
}, },
{ {
@ -42,9 +41,8 @@ return {
{ {
"williamboman/mason.nvim", "williamboman/mason.nvim",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "netcoredbg", "csharpier" }) vim.list_extend(opts.ensure_installed, { "netcoredbg", "csharpier" })
end
end, end,
}, },
{ {

View file

@ -25,9 +25,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "ninja", "rst" }) vim.list_extend(opts.ensure_installed, { "ninja", "rst" })
end
end, end,
}, },
{ {

View file

@ -60,9 +60,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "r", "rnoweb" }) vim.list_extend(opts.ensure_installed, { "r", "rnoweb" })
end
end, end,
}, },
{ {

View file

@ -8,9 +8,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "scala" }) vim.list_extend(opts.ensure_installed, { "scala" })
end
end, end,
}, },
{ {

View file

@ -16,9 +16,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "svelte" }) vim.list_extend(opts.ensure_installed, { "svelte" })
end
end, end,
}, },

View file

@ -9,12 +9,11 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { vim.list_extend(opts.ensure_installed, {
"terraform", "terraform",
"hcl", "hcl",
}) })
end
end, end,
}, },
{ {

View file

@ -20,9 +20,8 @@ return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
opts.highlight = opts.highlight or {} opts.highlight = opts.highlight or {}
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "bibtex" }) vim.list_extend(opts.ensure_installed, { "bibtex" })
end
if type(opts.highlight.disable) == "table" then if type(opts.highlight.disable) == "table" then
vim.list_extend(opts.highlight.disable, { "latex" }) vim.list_extend(opts.highlight.disable, { "latex" })
else else

View file

@ -12,9 +12,8 @@ return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
if type(opts.ensure_installed) == "table" then opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "vue" }) vim.list_extend(opts.ensure_installed, { "vue" })
end
end, end,
}, },