Update Readme

This commit is contained in:
Josean Martinez 2022-11-01 20:03:06 -04:00 committed by GitHub
parent fe891d57a4
commit e4918b8035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@
### Issue I Encountered with Treesitter and Lua Syntax Highlighting ### Issue I Encountered with Treesitter and Lua Syntax Highlighting
I updated treesitter recently and ran into an issue with my lua file syntax highlighting. It seems I updated treesitter recently and ran into an issue with my lua file syntax highlighting. It seems
that the homebrew install of neovim includes a lua parser that was no longer compatible. that the homebrew install of neovim includes a lua parser that is no longer compatible with the latest version of nvim-treesitter.
I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter/issues/3092. I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter/issues/3092.
@ -39,12 +39,19 @@ According to the solution, I ran the following:
:echo nvim_get_runtime_file('*/lua.so', v:true) :echo nvim_get_runtime_file('*/lua.so', v:true)
``` ```
And according to the output had to remove the lua parser from the homebrew install like so: And according to the output, I had to remove the built-in lua parser from the homebrew install of neovim like so:
```bash ```bash
rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so
``` ```
Another option is to install the development version of Neovim like so:
```bash
brew install neovim --HEAD
```
Hopefully this issue should be fixed in the next version of Neovim.
### Setup Requires ### Setup Requires
- True Color Terminal Like: [iTerm2](https://iterm2.com/) - True Color Terminal Like: [iTerm2](https://iterm2.com/)
- [Neovim](https://neovim.io/) (Version 0.8 or Later) - [Neovim](https://neovim.io/) (Version 0.8 or Later)