aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/lua.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-02-15 09:55:23 +0100
committerGitHub <noreply@github.com>2023-02-15 09:55:23 +0100
commit2e450efb9525308708dd9e26d6ea1d029ac781b8 (patch)
tree41d60fa0557bfb695e504a5574c84206be18d5e6 /runtime/ftplugin/lua.lua
parentae7653b74cfd373dbafe84c913f8b1b5a006670d (diff)
downloadrneovim-2e450efb9525308708dd9e26d6ea1d029ac781b8.tar.gz
rneovim-2e450efb9525308708dd9e26d6ea1d029ac781b8.tar.bz2
rneovim-2e450efb9525308708dd9e26d6ea1d029ac781b8.zip
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 (limited to 'runtime/ftplugin/lua.lua')
-rw-r--r--runtime/ftplugin/lua.lua3
1 files changed, 0 insertions, 3 deletions
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