From e4918b80352f64360bd8230ba87c240999981374 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:03:06 -0400 Subject: [PATCH] Update Readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ec9da5..2d00867 100644 --- a/README.md +++ b/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)