Closed Je12emy closed 1 year ago
Interesting; the previous Lua snippet works perfectly well for me.
Are you sure you're putting it in the correct file path (~/.config/nvim/ftdetect/astro.lua
, not ~/.config/nvim/lua/ftdetect/astro.lua
)?
Interesting; the previous Lua snippet works perfectly well for me.
Are you sure you're putting it in the correct file path (
~/.config/nvim/ftdetect/astro.lua
, not~/.config/nvim/lua/ftdetect/astro.lua
)?
Yes, the new code snippet is located in the same place. we could include both code snippets just in case!
Can you try running Neovim with a minimal config only containing the ftdetect/astro.lua
file?
Can you try running Neovim with a minimal config only containing the
ftdetect/astro.lua
file?
will do!
I made a minimal config with Treesitter and Lazy, the original code snippet works! There must be something else causing trouble in OP's and my config. I will close this PR.
On the good side, if someone else has a similar issue, they will find a solution in the repository!
I have used astro and nvim for a while and the included instructions for setting up .astro files did not work for me. After a bit a digging I found this thread showing another solution which worked. Apparently, OP also used the instructions included in the readme but also ran into trouble.