Replies: 3 comments 4 replies
|
I had an issue with tree-sitter-cli also not playing well, which caused some errors when I tried to boot up neovim. Not exactly the same situation but this might help. Installing tree-sitter-cli via apt didn't work for me and I had to install it manually. curl https://sh.rustup.rs -sSf | sh
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall tree-sitter-cli |
|
Those are two independent lookup paths: the shell First check the executable Neovim actually resolves: :lua print(vim.fn.exepath('tree-sitter'))
:lua print(vim.fn.system({ 'tree-sitter', '--version' }))
:lua print(vim.fn.stdpath('data'))The current nvim-treesitter health check requires CLI 0.26.1 or newer and uses cargo install --locked tree-sitter-cli --version 0.26.1 --force
export PATH="$HOME/.cargo/bin:$PATH"
hash -r
tree-sitter --versionPersist the export in the startup file used by WSL (commonly For the parser directory, configure nvim-treesitter in Lua; do not add it to the shell PATH: require('nvim-treesitter').setup {
install_dir = vim.fn.stdpath('data') .. '/site',
}Alternatively, if that directory is intentionally managed elsewhere: vim.opt.runtimepath:prepend(vim.fn.stdpath('data') .. '/site')Then run |
|
This thread appears to have a fix for the runtime path but I cannot find the kickstart version of this nvim-treesitter/health.lua |
Uh oh!
There was an error while loading. Please reload this page.
I am a new Linux user running Ubuntu 26.04 on wsl2 (Windows 11) and eager to use kickstart.nvim. Despite carefully following the Ubuntu install recipe several times from scratch, I am unable to overcome the following two errors revealed in Nvim by :checkhealth.
Under nvim-treesitter:
X ERROR tree-sitter-cli v0.26.1 is required
/home/ubuntudude/.local/share/nvim/site/
X ERROR is not in runtimepath.
For the sake of brevity, I shan't recount the steps I have taken to try and fix this but, suffice to say, /home/ubuntudude/.local/share/nvim/site/ IS in my .bashrc and does appear in $PATH. Also, tree-sitter is located at /home/ubuntudude/.cargo/bin which is also added to my .bashrc and appers in $PATH.
At this point, I could use a hand. Thanks for having a look.
All reactions