summaryrefslogtreecommitdiffstats
path: root/plugin/nvim-treesitter.lua
Commit message (Collapse)AuthorAgeFilesLines
* feat!: remove obsolete `TS*` highlight groupsChristian Clason2022-10-161-10/+0
|
* feat(highlight): re-apply default highlights on colorscheme changesJohn Drouhard2022-07-301-85/+8
| | | | | | | | | | | | | | | | | | If the plugin is loaded after a colorscheme is set that defines any of these highlight groups, the default won't be applied. Subsequent "highlight clear" commands (common when switching colorschemes) will then clear any of those highlights, but these defaults never have another opportunity to be initialized. Effectively, if you load neovim with a colorscheme that has definitions for some of these highlight groups, then load treesitter, then switch colorschemes, many of these default links will be absent resulting in colors that do not appear the same as if that colorscheme had been used at startup. Hooking the ColorScheme event with an autocmd that just reapplies these defaults gives every colorscheme switch the opportunity to get the defaults for non-explicitly-defined groups.
* refactor!: update to Neovim 0.7 APIsChristian Clason2022-04-301-0/+121
* set highlight groups via nvim_set_hl * define autocommands via nvim_create_autocmd * port plugin/nvim-treesitter.vim to Lua * port healthcheck to Lua