Define `ensure_installed` and allow to extend it by the user

This commit is contained in:
Tomasz Wojdat 2026-03-20 15:14:13 +01:00
parent 8b205c6e4c
commit 66e732b7ea
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -905,8 +905,12 @@ require('lazy').setup({
'lewis6991/ts-install.nvim', 'lewis6991/ts-install.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter' }, dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function() config = function()
local ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }
vim.list_extend(ensure_installed, {
-- You can add other parsers here that you want to be always installed
})
require('ts-install').setup { require('ts-install').setup {
ensure_install = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, ensure_install = ensure_installed,
auto_install = true, auto_install = true,
} }
end, end,