mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-08 17:21:23 +01:00
Update Readme
This commit is contained in:
parent
fe891d57a4
commit
e4918b8035
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -29,7 +29,7 @@
|
|||
|
||||
### 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
|
||||
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.
|
||||
|
||||
|
@ -39,12 +39,19 @@ According to the solution, I ran the following:
|
|||
: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
|
||||
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
|
||||
- True Color Terminal Like: [iTerm2](https://iterm2.com/)
|
||||
- [Neovim](https://neovim.io/) (Version 0.8 or Later)
|
||||
|
|
Loading…
Reference in a new issue