From 2e450efb9525308708dd9e26d6ea1d029ac781b8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 15 Feb 2023 09:55:23 +0100 Subject: 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`). --- runtime/ftplugin/lua.lua | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 runtime/ftplugin/lua.lua (limited to 'runtime/ftplugin/lua.lua') diff --git a/runtime/ftplugin/lua.lua b/runtime/ftplugin/lua.lua deleted file mode 100644 index 415cf28f9a..0000000000 --- a/runtime/ftplugin/lua.lua +++ /dev/null @@ -1,3 +0,0 @@ -if vim.g.ts_highlight_lua then - vim.treesitter.start() -end -- cgit