From c96e14dd708501bb3ef40e06997f9d60c02d04e7 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:07:34 -0400 Subject: [PATCH 1/4] Added description of recent fix for nvim-treesitter --- README.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2b9b0c8..adc5e01 100644 --- a/README.md +++ b/README.md @@ -57,17 +57,8 @@ For XCode Command Line Tools do: xcode-select --install ``` -### Issue with Nvim-Treesitter Update and Lua Parser -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". - -To fix it, after opening Neovim do this: - -```bash -:TSInstall lua -``` - -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. - +### Issue with Nvim-Treesitter Updates +When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the run command to make sure parsers are properly updated whenever necessary. It was missing something before. You can look at the change here: de7061dd5373100c2c1dccb1f759ad350a5cf88a. ## Plugins #### Plugin Manager From c926ded0b148263a13ea043bb175a8bbe8969345 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:10:01 -0400 Subject: [PATCH 2/4] Updated commit hash --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index adc5e01..70ac11b 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,9 @@ xcode-select --install ``` ### Issue with Nvim-Treesitter Updates -When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the run command to make sure parsers are properly updated whenever necessary. It was missing something before. You can look at the change here: de7061dd5373100c2c1dccb1f759ad350a5cf88a. +When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the run command to make sure parsers are properly updated whenever necessary. It was missing something before. + +You can look at the change here: de7061dd5373100c2c1dccb1f759ad350a5cf88a ## Plugins #### Plugin Manager From 999ee3a8f079b2582f37808aeba997b82f4a5206 Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:14:22 -0400 Subject: [PATCH 3/4] Edited description of nvim-treesitter packer change in Readme --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 70ac11b..d835097 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,20 @@ For XCode Command Line Tools do: xcode-select --install ``` -### Issue with Nvim-Treesitter Updates -When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the run command to make sure parsers are properly updated whenever necessary. It was missing something before. +### Nvim-Treesitter Updates +When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the "run" command to make sure parsers are properly updated whenever nvim-treesitter is installed or updated. The code is found in this file: [plugins-setup.lua](.config/nvim/plugins-setup.lua) -You can look at the change here: de7061dd5373100c2c1dccb1f759ad350a5cf88a +The updated code is this: +```lua +use({ + "nvim-treesitter/nvim-treesitter", + run = function() + local ts_update = require("nvim-treesitter.install").update({ with_sync = true }) + ts_update() + end, + }) + +``` ## Plugins #### Plugin Manager From 2a192be20dc5b62a9b1b0e733c516a18f5a9054d Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Fri, 11 Nov 2022 17:16:52 -0400 Subject: [PATCH 4/4] Fixed link to plugins-setup.lua file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d835097..9658a44 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ xcode-select --install ``` ### Nvim-Treesitter Updates -When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I've made a change to how nvim-treesitter is installed with packer and the "run" command to make sure parsers are properly updated whenever nvim-treesitter is installed or updated. The code is found in this file: [plugins-setup.lua](.config/nvim/plugins-setup.lua) +When nvim-treesitter updates, there might be breaking changes to corresponding parsers being used. I made a change to make sure parsers are automatically updated whenever nvim-treesitter is installed/updated. The code is found in this file: [plugins-setup.lua](.config/nvim/lua/josean/plugins-setup.lua) The updated code is this: ```lua