forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(runtime): stop treesitter highlight in b:undo_ftplugin (neovim#29533
) 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 '|'.
- Loading branch information
Showing
5 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
-- use treesitter over syntax | ||
vim.treesitter.start() | ||
|
||
vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | call v:lua.vim.treesitter.stop()' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- Neovim indent file | ||
-- Language: Treesitter query | ||
-- Last Change: 2022 Mar 29 | ||
-- Last Change: 2024 Jul 03 | ||
|
||
-- it's a lisp! | ||
vim.cmd([[ runtime! indent/lisp.vim ]]) | ||
vim.cmd([[runtime! indent/lisp.vim]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- Neovim syntax file | ||
-- Language: Treesitter query | ||
-- Last Change: 2022 Apr 13 | ||
-- Last Change: 2024 Jul 03 | ||
|
||
-- it's a lisp! | ||
vim.cmd([[ runtime! syntax/lisp.vim ]]) | ||
vim.cmd([[runtime! syntax/lisp.vim]]) |