Skip to content

Commit e12671b

Browse files
committed
fix: populate runtimepath correctly - closes #65
1 parent 469cf37 commit e12671b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/debugprint.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
vim.o.hidden = true
22
vim.o.swapfile = false
33

4-
vim.cmd("set rtp+=~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter")
5-
vim.cmd("set rtp+=../nvim-treesitter")
4+
-- These must be prepended because of this:
5+
-- https://github.com/nvim-treesitter/nvim-treesitter/issues/3092#issue-1288690088
6+
vim.opt.runtimepath:prepend("~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter")
7+
vim.opt.runtimepath:prepend("../nvim-treesitter")
68
vim.cmd("runtime! plugin/nvim-treesitter.lua")
79

810
local install_parser_if_needed = function(filetype)

0 commit comments

Comments
 (0)