Skip to content

Commit e3d6bd6

Browse files
committed
add ts binary into runtime
1 parent e0b2b09 commit e3d6bd6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

lua/tests/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ require('nvim-treesitter').setup({
4848
-- Directory to install parsers and queries to
4949
install_dir = vim.fn.stdpath('data') .. '/site',
5050
})
51+
vim.opt.rtp:append(vim.fn.stdpath('data') .. '/site')
5152

5253
vim.api.nvim_create_autocmd('FileType', {
5354
pattern = { 'go' },

lua/tests/install-parsers.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ for i = 1, #_G.arg do
77
parsers[#parsers + 1] = _G.arg[i] ---@type string
88
end
99

10+
local install_dir = vim.fn.stdpath('data') .. '/site'
11+
print('Installing to: ' .. install_dir)
12+
13+
vim.opt.rtp:append(install_dir)
1014
require('nvim-treesitter').setup({
1115
-- Directory to install parsers and queries to
12-
install_dir = vim.fn.stdpath('data') .. '/site',
16+
install_dir = install_dir,
1317
})
1418

1519
require('nvim-treesitter').install(parsers, { force = true }):wait(1800000) -- wait max. 30 minutes

lua/tests/minimal.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ vim.cmd([[
1111
runtime! plugin/nvim-lspconfig.vim
1212
runtime! plugin/guihua.lua
1313
]])
14+
vim.opt.rtp:append(vim.fn.stdpath('data') .. '/site')
1415

1516
vim.opt.swapfile = false -- no swapfile
1617
vim.opt.backup = false -- no backup

0 commit comments

Comments
 (0)