From 582cbc8c2dc311deb7a03f7d505d52544c36d4b6 Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sun, 6 Aug 2023 08:59:47 -0400 Subject: [PATCH] Document tree-sitter virtual text options re #316 --- doc/matchup.txt | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/doc/matchup.txt b/doc/matchup.txt index 9c7bb7f..770f75b 100644 --- a/doc/matchup.txt +++ b/doc/matchup.txt @@ -269,6 +269,38 @@ directives. See |matchup-feat-exclusive| and |matchup-feat-linewise| for some examples and important special cases. + *matchup-treesitter* + +Tree-sitter integration~ +Note: Currently this feature is possible in neovim only. Only the latest +version of neovim and nvim-treesitter is supported. + +match-up has support for language syntax provided by tree-sitter. The list +of supported languages is available here. This feature requires manual +opt-in in your init.vim and requires nvim-treesitter to be installed. > + + Plug 'nvim-treesitter/nvim-treesitter' + lua < @@ -788,6 +820,24 @@ the function |timer_pause|, version 7.4.2180 and after. < Default: 0 +*g:matchup_matchparen_end_sign* + + (neovim only) Configure the virtual symbol shown for closeless matches in languages like + C++ and python. + + if (true) + cout << ""; + else + cout << ""; ◀ if + + Default ◀ + +*MatchupVirtualText* + + (neovim only) You can also configure the color and style of the virtual text. + + :hi MatchupVirtualText ctermbg=blue guibg=lightblue gui=italic + Module motion~ *g:matchup_motion_override_Npercent*