Closed marmoute closed 1 month ago
This is fixed by https://github.com/apple/pkl-neovim/pull/14
This is fixed by #14
It doesn't seem to be fixed.
Given that error message, it sounds like you need to run :TSInstall pkl
Can you run :TSUpdate
, then :TSInstall pkl
?
As for that undefined global, seems like it's some editor setting that you need to configure.
:TSUpdate
followed by :TSInstall pkl
has no effect.
@marmoute can you confirm whether your issue is resolved?
As for that undefined global, seems like it's some editor setting that you need to configure.
Thanks for this, btw!
@bioball: FWIW, pkl doesn't appear here: https://github.com/nvim-treesitter/nvim-treesitter#supported-languages
Is something else we're doing in the lazy file ensuring that it is loaded some other way? I also tried changing my pkl.lua to match the current one on your README, but no luck.
We extend nvim-treesitter to add pkl as a language here: https://github.com/apple/pkl-neovim/blob/main/lua/pkl-neovim/internal.lua
Maybe try adding that code directly to your init.vim and see if that helps?
Personally, I use vim-plug, which works just fine for me.
CC @gibfahn who also uses Lazy
@bioball: I appreciate your attempts to troubleshoot with me. :) I can confirm that it has worked in the past via lazy. I'm not sure what would have changed.
@marmoute can you confirm whether your issue is resolved?
I ran TSUpdarte and TSInstall and I still get the following error.
The following errors have been detected:
- ERROR pkl(locals): /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 1024 for language pkl
pkl(locals) is concatenated from the following files:
| [ERROR]:"/home/marmoute/.local/share/nvim/lazy/pkl-neovim/queries/pkl/locals.scm", failed to load: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 1024 for language pkl
Can you try the instructions provided in https://github.com/apple/pkl-neovim/pull/20?
I installed pkl-neovim using the recommanded config for "lazy.nvim" but it did not result in a working install.
:checkhealth nvim-treesitter
give me the following errorI tried the recommandation at https://github.com/nvim-treesitter/nvim-treesitter#i-get-query-error-invalid-node-type-at-position without success.
Any idea of what's going wrong ?