aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-04-27 13:02:32 +0200
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit522e0c6991c4852be9539dfe0d9f19eae998dfe6 (patch)
tree7d9ef5fa44a0d76aa08c56ed95cf9bc1e9d2e83d /scripts
parentfeat(parsers): update swift, tact, tcl, templ, mlir, kotlin, koto, elixir, ph... (diff)
downloadnvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar.gz
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar.bz2
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar.lz
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar.xz
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.tar.zst
nvim-treesitter-522e0c6991c4852be9539dfe0d9f19eae998dfe6.zip
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/minimal_init.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/minimal_init.lua b/scripts/minimal_init.lua
index 2af5f8ecb..648ffa69f 100644
--- a/scripts/minimal_init.lua
+++ b/scripts/minimal_init.lua
@@ -1,13 +1,11 @@
vim.opt.runtimepath:append('.')
vim.cmd.runtime({ 'plugin/plenary.vim', bang = true })
-vim.cmd.runtime({ 'plugin/nvim-treesitter.lua', bang = true })
vim.cmd.runtime({ 'plugin/query_predicates.lua', bang = true })
vim.cmd.runtime({ 'plugin/filetypes.lua', bang = true })
vim.filetype.add({
extension = {
conf = 'hocon',
- hurl = 'hurl',
ncl = 'nickel',
tig = 'tiger',
w = 'wing',
@@ -17,7 +15,6 @@ vim.filetype.add({
vim.o.swapfile = false
vim.bo.swapfile = false
-require('nvim-treesitter').setup()
vim.api.nvim_create_autocmd('FileType', {
callback = function(args)
pcall(vim.treesitter.start)