nvim-treesitter/lua/nvim-treesitter/init.lua
Christian Clason 55a08ec3d7 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.
2025-05-06 10:34:45 +02:00

23 lines
431 B
Lua

local M = {}
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
return M