mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
0822896efc
* 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`
4 lines
60 B
Lua
4 lines
60 B
Lua
if vim.g.ts_highlight_lua then
|
|
vim.treesitter.start()
|
|
end
|