From 20f5a1a93d86a7e82eaca9334212e54058ef3562 Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Mon, 29 Jan 2024 19:50:23 +0200 Subject: [PATCH] (all) Update help to highlight code inside lists with tree-sitter on. Details: - https://github.com/neovim/tree-sitter-vimdoc/issues/118 --- doc/mini-align.txt | 16 ++++++++-------- lua/mini/align.lua | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/mini-align.txt b/doc/mini-align.txt index 5d0c318..457c3fc 100644 --- a/doc/mini-align.txt +++ b/doc/mini-align.txt @@ -488,14 +488,14 @@ Each modifier function: - Has signature `(steps, opts)` and should modify any of its input in place. Examples: -- Modifier function used for default 'i' modifier: -> +- Modifier function used for default 'i' modifier: > + function(steps, _) table.insert(steps.pre_split, MiniAlign.gen_step.ignore_split()) end < -- Tweak 't' modifier to use highest indentation instead of keeping it: -> +- Tweak 't' modifier to use highest indentation instead of keeping it: > + require('mini.align').setup({ modifiers = { t = function(steps, _) @@ -506,8 +506,8 @@ Examples: }) < - Tweak `j` modifier to cycle through available "justify_side" option - values (like in 'junegunn/vim-easy-align'): -> + values (like in 'junegunn/vim-easy-align'): > + require('mini.align').setup({ modifiers = { j = function(_, opts) @@ -536,8 +536,8 @@ For more details about options see |MiniAlign.align_strings()| and entries of alignment process. Examples: -- Align by default only first pair of columns: -> +- Align by default only first pair of columns: > + local align = require('mini.align') align.setup({ steps = { diff --git a/lua/mini/align.lua b/lua/mini/align.lua index f55afdf..3abc203 100644 --- a/lua/mini/align.lua +++ b/lua/mini/align.lua @@ -442,14 +442,14 @@ end --- - Has signature `(steps, opts)` and should modify any of its input in place. --- --- Examples: ---- - Modifier function used for default 'i' modifier: ---- > +--- - Modifier function used for default 'i' modifier: > +--- --- function(steps, _) --- table.insert(steps.pre_split, MiniAlign.gen_step.ignore_split()) --- end --- < ---- - Tweak 't' modifier to use highest indentation instead of keeping it: ---- > +--- - Tweak 't' modifier to use highest indentation instead of keeping it: > +--- --- require('mini.align').setup({ --- modifiers = { --- t = function(steps, _) @@ -460,8 +460,8 @@ end --- }) --- < --- - Tweak `j` modifier to cycle through available "justify_side" option ---- values (like in 'junegunn/vim-easy-align'): ---- > +--- values (like in 'junegunn/vim-easy-align'): > +--- --- require('mini.align').setup({ --- modifiers = { --- j = function(_, opts) @@ -490,8 +490,8 @@ end --- alignment process. --- --- Examples: ---- - Align by default only first pair of columns: ---- > +--- - Align by default only first pair of columns: > +--- --- local align = require('mini.align') --- align.setup({ --- steps = {