Add logic for pre-installation of common types.

This commit is contained in:
2026-01-26 23:04:27 +01:00
parent b066ba917f
commit be197ca7aa

View File

@@ -5,6 +5,12 @@ return { {
build = ':TSUpdate', build = ':TSUpdate',
lazy = false, lazy = false,
config = function() config = function()
-- Pre-install a few languages we're (very) likely going to use
require('nvim-treesitter').install({
'c', 'make',
'bash', 'gitignore', 'editorconfig',
'ini', 'json', 'yaml',
})
Autocmd('FileType', { Autocmd('FileType', {
pattern = require('nvim-treesitter').get_available(), pattern = require('nvim-treesitter').get_available(),
callback = function(ft) callback = function(ft)