mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
12c9791e0f
It seems that nvim-treesitter stops treesitter highlight when changing filetype, so it makes sense for builtin ftplugins to do this as well. Use :call and v:lua here to allow separation with '|'.
5 lines
137 B
Lua
5 lines
137 B
Lua
-- use treesitter over syntax
|
|
vim.treesitter.start()
|
|
|
|
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | call v:lua.vim.treesitter.stop()'
|