mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	* 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
 |