neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 2e450efb9525308708dd9e26d6ea1d029ac781b8
parent ae7653b74cfd373dbafe84c913f8b1b5a006670d
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Wed, 15 Feb 2023 09:55:23 +0100

feat(treesitter)!: remove g:ts_highlight_lua (#22257)

This variable was only meant for easy testing during the development
cycle for treesitter highlighting while Lua was the only parser useable
for daily driving. Now that we have a good vimdoc parser, this approach
simply doesn't scale and should be removed sooner rather than later.

Instead of setting this variable, people for now should add the autocommand
directly to their config:
```lua
vim.api.nvim_create_autocmd('FileType', {
  pattern = 'lua', -- or { 'lua', 'help' }
  callback = function() vim.treesitter.start() end,
})
```
(or put `vim.treesitter.start()` in an `ftplugin`).
Diffstat:
Druntime/ftplugin/lua.lua | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/runtime/ftplugin/lua.lua b/runtime/ftplugin/lua.lua @@ -1,3 +0,0 @@ -if vim.g.ts_highlight_lua then - vim.treesitter.start() -end