mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 07:11:20 +00:00
feat(treesitter): add vim.treesitter.start(), enable for Lua
* Add vim.treesitter.start() for starting treesitter highlighting via ftplugin or autocommand (can be extended later for fold, indent, matchpairs, ...) * Add vim.treesitter.stop() for manually stopping treesitter highlighting * Enable treesitter highlighting for Lua if `vim.g.ts_highlight_lua = true` is set in `init.lua`
This commit is contained in:
3
runtime/ftplugin/lua.lua
Normal file
3
runtime/ftplugin/lua.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
if vim.g.ts_highlight_lua then
|
||||
vim.treesitter.start()
|
||||
end
|
||||
Reference in New Issue
Block a user