Add logic for pre-installation of common types.
This commit is contained in:
@@ -5,6 +5,12 @@ return { {
|
||||
build = ':TSUpdate',
|
||||
lazy = false,
|
||||
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', {
|
||||
pattern = require('nvim-treesitter').get_available(),
|
||||
callback = function(ft)
|
||||
|
||||
Reference in New Issue
Block a user