From a1d24180e20c8d9dee050409026d967b265e6d0b Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:19:38 -0400 Subject: [PATCH] Added explanation for treesitte update error --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 197a53f..e17fcc6 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,21 @@ brew install ripgrep ### Relevant Files - [.config/nvim](.config/nvim) +### Issue I Encountered with Treesitter Update and Lua Syntax Highlighting +I updated treesitter recently and ran into an issue with my lua file syntax highlighting. +I found a solution here: https://github.com/nvim-treesitter/nvim-treesitter. + +According to the solution, I ran the following: + +```bash +:echo nvim_get_runtime_file('*/lua.so', v:true) +``` + +And according to the output had to remove this directory: +```bash +rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so +``` + ## Plugins #### Plugin Manager - [wbthomason/packer](https://github.com/wbthomason/packer.nvim) - Popular plugin manager