Skip to content

Commit

Permalink
(all) Update help to highlight code inside lists with tree-sitter on.
Browse files Browse the repository at this point in the history
  • Loading branch information
echasnovski committed Jan 29, 2024
1 parent 708c026 commit 20f5a1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions doc/mini-align.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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, _)
Expand All @@ -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)
Expand Down Expand Up @@ -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 = {
Expand Down
16 changes: 8 additions & 8 deletions lua/mini/align.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, _)
Expand All @@ -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)
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 20f5a1a

Please sign in to comment.