Set treesit-primary-parser for c and elixir ts mode
authorYuan Fu <casouri@gmail.com>
Sat, 14 Sep 2024 07:46:05 +0000 (00:46 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 14 Sep 2024 07:46:05 +0000 (00:46 -0700)
commit3cad7cc8dc823b8b1dd66d7777a01778e1a4defe
treea392bd6c65a99f367a47d235b2ced1f6c72c86d3
parent2f243fb91d6d2c4c4e4a6dbbd94ef5b13d543732
Set treesit-primary-parser for c and elixir ts mode

For buffers with multiple parsers, it's important to set this variable
so font-lock invalidation works smoothly.

* lisp/progmodes/c-ts-mode.el (c-ts-mode): Set treesit-primary-parser.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): Set
treesit-primary-parser.
lisp/progmodes/c-ts-mode.el
lisp/progmodes/elixir-ts-mode.el