Added nvim-tree
This commit is contained in:
@@ -27,6 +27,11 @@ return {
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
group = ts_autoinstall_group,
|
||||
callback = function(args)
|
||||
-- Skip UI/special buffers (file explorers, help, terminals, quickfix, ecc.)
|
||||
if vim.bo[args.buf].buftype ~= '' then
|
||||
return
|
||||
end
|
||||
|
||||
local lang = vim.treesitter.language.get_lang(args.match) or args.match
|
||||
|
||||
-- Try starting right away: if it works, the parser was already installed
|
||||
@@ -54,4 +59,3 @@ return {
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user