Add logic for pre-installation of common types.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user