mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 21:00:08 -04:00
feat(setup)!: remove ensure_install field
Instead, call `require('nvim-treesitter').install( { ... } )` manually.
This gives users full control over how they want to install parsers
(sync, from grammar, limited concurrency) and obviates the need for
calling `setup` for most users.
This commit is contained in:
parent
73adbe597e
commit
522e0c6991
7 changed files with 37 additions and 46 deletions
|
|
@ -4,6 +4,18 @@ function M.setup(...)
|
|||
require('nvim-treesitter.config').setup(...)
|
||||
end
|
||||
|
||||
function M.install(...)
|
||||
require('nvim-treesitter.install').install(...)
|
||||
end
|
||||
|
||||
function M.uninstall(...)
|
||||
require('nvim-treesitter.install').uninstall(...)
|
||||
end
|
||||
|
||||
function M.update(...)
|
||||
require('nvim-treesitter.install').update(...)
|
||||
end
|
||||
|
||||
function M.indentexpr()
|
||||
return require('nvim-treesitter.indent').get_indent(vim.v.lnum)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue