mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Refactor: move completion functions to autoload
This commit is contained in:
parent
b8453e63b2
commit
1ba18329c7
5 changed files with 36 additions and 35 deletions
|
|
@ -9,18 +9,7 @@ augroup END
|
|||
|
||||
let g:loaded_nvim_treesitter = 1
|
||||
|
||||
lua << EOF
|
||||
ts_installable_parsers = function()
|
||||
return table.concat(require'nvim-treesitter.parsers'.available_parsers(), '\n')..'\nall\n'
|
||||
end
|
||||
ts_installed_parsers = function()
|
||||
return table.concat(require'nvim-treesitter.info'.installed_parsers(), '\n')..'\nall\n'
|
||||
end
|
||||
ts_available_modules = function()
|
||||
return table.concat(require'nvim-treesitter.configs'.available_modules(), '\n')
|
||||
end
|
||||
require'nvim-treesitter'.setup()
|
||||
EOF
|
||||
lua require'nvim-treesitter'.setup()
|
||||
|
||||
highlight default link TSError Error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue