mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-08 17:21:23 +01:00
Merge branch 'main' of github.com:josean-dev/dev-environment-files
This commit is contained in:
commit
7c98538698
1 changed files with 11 additions and 8 deletions
19
README.md
19
README.md
|
@ -57,18 +57,21 @@ For XCode Command Line Tools do:
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Issue with Nvim-Treesitter Update and Lua Parser
|
### Nvim-Treesitter Updates
|
||||||
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".
|
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)
|
||||||
|
|
||||||
To fix it, after opening Neovim do this:
|
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,
|
||||||
|
})
|
||||||
|
|
||||||
```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.
|
|
||||||
|
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
#### Plugin Manager
|
#### Plugin Manager
|
||||||
- [wbthomason/packer](https://github.com/wbthomason/packer.nvim) - Popular plugin manager
|
- [wbthomason/packer](https://github.com/wbthomason/packer.nvim) - Popular plugin manager
|
||||||
|
|
Loading…
Reference in a new issue