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 01/13] 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 From 7e919b67133d109e4066d8ef4f5a945f457e6a94 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:31:28 -0400 Subject: [PATCH 02/13] Update Readme --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e17fcc6..6cb178f 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,11 @@ 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. +### 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. + +I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter. According to the solution, I ran the following: @@ -58,7 +60,8 @@ 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 this directory: +And according to the output had to remove the lua parser from the homebrew install like so: + ```bash rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so ``` From 7bb61e1669d2f26cf40303b8711feceaaf81ba65 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:32:03 -0400 Subject: [PATCH 03/13] Update Readme --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 6cb178f..eb45ee1 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,24 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) +### 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. + +I found the 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 the lua parser from the homebrew install like so: + +```bash +rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so +``` + ### Requires - True Color Terminal Like: [iTerm2](https://iterm2.com/) - [Neovim](https://neovim.io/) (Version 0.8 or Later) @@ -48,24 +66,6 @@ brew install ripgrep ### Relevant Files - [.config/nvim](.config/nvim) -### 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. - -I found the 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 the lua parser from the homebrew install like so: - -```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 From fe891d57a48085deb9730459e18031310333c759 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:41:15 -0400 Subject: [PATCH 04/13] Update Readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb45ee1..3ec9da5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ 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. -I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter. +I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter/issues/3092. According to the solution, I ran the following: @@ -45,7 +45,7 @@ And according to the output had to remove the lua parser from the homebrew insta rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so ``` -### Requires +### Setup Requires - True Color Terminal Like: [iTerm2](https://iterm2.com/) - [Neovim](https://neovim.io/) (Version 0.8 or Later) - [Nerd Font](https://www.nerdfonts.com/) - I use Meslo Nerd Font 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 05/13] 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) From ece7230e9092d5b267e685c0a5f84facdfed8e25 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:03:53 -0400 Subject: [PATCH 06/13] Update Readme --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 2d00867..5542864 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,7 @@ that the homebrew install of neovim includes a lua parser that is no longer comp I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter/issues/3092. -According to the solution, I ran the following: - -```bash -:echo nvim_get_runtime_file('*/lua.so', v:true) -``` - -And according to the output, I had to remove the built-in lua parser from the homebrew install of neovim like so: +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 From 456fa58d2b403eb9140a941f3c26c2069847c281 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:22:52 -0400 Subject: [PATCH 07/13] Changed fix for nvim-treesitter update and lua parser problem --- README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 5542864..a85d9e9 100644 --- a/README.md +++ b/README.md @@ -27,24 +27,17 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) -### 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 is no longer compatible with the latest version of nvim-treesitter. +### Issue with Nvim-Treesitter Update and Neovim Built-In Lua Parser +I updated nvim-treesitter recently and ran into an issue with my lua file syntax highlighting through treesitter. It seems +that the homebrew install of neovim 0.8 includes a lua parser that is no longer compatible with the latest version of nvim-treesitter. By default nvim-treesitter will try to use this parser instead of installing the lua parser that is available through nvim-treesitter and thus throw an error. -I found the solution here: https://github.com/nvim-treesitter/nvim-treesitter/issues/3092. - -I had to remove the built-in lua parser from the homebrew install of neovim like so: +I had to manually install the latest lua parser manually through nvim-treesitter so that it would use this parser instead of the one that comes built into neovim by running the following within neovim: ```bash -rm -rf /opt/homebrew/Cellar/neovim/0.8.0/lib/nvim/parser/lua.so +:TSInstall lua ``` -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. +It will ask if you would like to reinstall the parser. Answer "y" for yes. After that is finished, restart neovim and the problem should be fixed. ### Setup Requires - True Color Terminal Like: [iTerm2](https://iterm2.com/) From 2d6a234390503d68f5b53392c7db81652d201ce0 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:23:18 -0400 Subject: [PATCH 08/13] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a85d9e9..92c866c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) -### Issue with Nvim-Treesitter Update and Neovim Built-In Lua Parser +### Issue with Nvim-Treesitter Update and Built-In Lua Parser I updated nvim-treesitter recently and ran into an issue with my lua file syntax highlighting through treesitter. It seems that the homebrew install of neovim 0.8 includes a lua parser that is no longer compatible with the latest version of nvim-treesitter. By default nvim-treesitter will try to use this parser instead of installing the lua parser that is available through nvim-treesitter and thus throw an error. From 7bce1210183c062b2cec025ae3e2bf1edef85456 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:28:15 -0400 Subject: [PATCH 09/13] Update Readme --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 92c866c..da41f65 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,11 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) ### Issue with Nvim-Treesitter Update and Built-In Lua Parser -I updated nvim-treesitter recently and ran into an issue with my lua file syntax highlighting through treesitter. It seems -that the homebrew install of neovim 0.8 includes a lua parser that is no longer compatible with the latest version of nvim-treesitter. By default nvim-treesitter will try to use this parser instead of installing the lua parser that is available through nvim-treesitter and thus throw an error. +I updated "nvim-treesitter" recently and ran into an issue with lua file syntax highlighting. -I had to manually install the latest lua parser manually through nvim-treesitter so that it would use this parser instead of the one that comes built into neovim by running the following within neovim: +It seems that the homebrew install of neovim 0.8 includes a built-in lua parser that is no longer compatible with the latest version of "nvim-treesitter". By default, "nvim-treesitter" will try to use this parser instead of installing the lua parser that is available through "nvim-treesitter" itself and thus throw an error. + +I had to manually install the latest lua parser available through "nvim-treesitter" manually so that it would use this parser instead of the one that comes built into neovim by executing the following within neovim: ```bash :TSInstall lua @@ -46,7 +47,7 @@ It will ask if you would like to reinstall the parser. Answer "y" for yes. After - [Ripgrep](https://github.com/BurntSushi/ripgrep) - For Telescope Fuzzy Finder - If working with typescript/javascript and the typescript language server like me. You might need to install node. -If you're on mac, like me, you can install iTerm2, Neovim and Ripgrep with homebrew. +If you're on mac, like me, you can install iTerm2, Neovim, Ripgrep and Node with homebrew. ```bash brew install --cask iterm2 ``` @@ -56,6 +57,9 @@ brew install neovim ```bash brew install ripgrep ``` +```bash +brew install node +``` ### Relevant Files - [.config/nvim](.config/nvim) From d4aa2289ce6e8642c0c626a4d05731a64f8d6853 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:28:46 -0400 Subject: [PATCH 10/13] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da41f65..eb00060 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) ### Issue with Nvim-Treesitter Update and Built-In Lua Parser -I updated "nvim-treesitter" recently and ran into an issue with lua file syntax highlighting. +I updated "nvim-treesitter" recently and ran into an issue with lua syntax highlighting. It seems that the homebrew install of neovim 0.8 includes a built-in lua parser that is no longer compatible with the latest version of "nvim-treesitter". By default, "nvim-treesitter" will try to use this parser instead of installing the lua parser that is available through "nvim-treesitter" itself and thus throw an error. From bba83bcc9dfc48296e70ffcad8f6c17ca98cc2f3 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:41:55 -0400 Subject: [PATCH 11/13] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb00060..38b595a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) -### Issue with Nvim-Treesitter Update and Built-In Lua Parser +### Issue with Nvim-Treesitter Update and Lua Parser I updated "nvim-treesitter" recently and ran into an issue with lua syntax highlighting. It seems that the homebrew install of neovim 0.8 includes a built-in lua parser that is no longer compatible with the latest version of "nvim-treesitter". By default, "nvim-treesitter" will try to use this parser instead of installing the lua parser that is available through "nvim-treesitter" itself and thus throw an error. From 90937c97cc6fbf56cc0b3bc0b53cc3f8f11546a8 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:42:37 -0400 Subject: [PATCH 12/13] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38b595a..bf90bef 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ # Neovim Setup 💡 **Tip:** I highly recommend following along with me on youtube and use the repo as reference to set up the config. You'll understand everything a lot better and be able to change things and evolve the setup into your own! -*If you clone the repo into your machine and use the config by copying .config/nvim to your home folder, you'll have to restart neovim after the plugins install. After restart, if you are opening a lua file or another file I have language servers configured for, like html, css or javascript/typescript, you might also get an error saying that the server failed to start. This is because Mason hasn't installed it yet. Press enter to continue, Mason will automatically install it and you should be good to go.* +*If you clone the repo into your machine and use the config by copying .config/nvim to your home folder, you'll have to restart neovim after the plugins install. After restart, if you are opening a lua file or another file I have language servers configured for, like html, css or javascript/typescript, you might also get an error saying that the server failed to start. This is because Mason hasn't installed it yet. Press enter to continue, Mason will automatically install it.* 📹 Youtube Step-by-Step Guide: [How I Setup Neovim On My Mac To Make It Amazing](https://youtu.be/vdn_pKJUda8) From 1a41c0fbf37ec0d904b260202669abfa4bae638f Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:44:22 -0400 Subject: [PATCH 13/13] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf90bef..20cd986 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ I updated "nvim-treesitter" recently and ran into an issue with lua syntax highl It seems that the homebrew install of neovim 0.8 includes a built-in lua parser that is no longer compatible with the latest version of "nvim-treesitter". By default, "nvim-treesitter" will try to use this parser instead of installing the lua parser that is available through "nvim-treesitter" itself and thus throw an error. -I had to manually install the latest lua parser available through "nvim-treesitter" manually so that it would use this parser instead of the one that comes built into neovim by executing the following within neovim: +I had to manually install the latest lua parser available through "nvim-treesitter" so that it would use this parser instead of the one that comes built into neovim by executing the following within neovim: ```bash :TSInstall lua