nvim-config

Log | Files | Refs | Submodules | README

commit 0a9c086d4ac4779de0edd6f5d66a48597ea6e2e4
parent 6747564f0e93f2a9a4b89292da53ada50752fb80
Author: Thomas Vigouroux <me@vigoux.eu>
Date:   Thu,  7 Mar 2024 08:33:04 +0100

chore: add comments about mini function sources

Diffstat:
Mafter/ftplugin/tex.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/after/ftplugin/tex.lua b/after/ftplugin/tex.lua @@ -169,6 +169,7 @@ function captures_inout(root) return res end +-- Somewhat copied from mini.ai local function ai_treesitter(captures) return function(ai_type) local tgt_captures = ai_type == "a" and "outer" or "inner" @@ -234,6 +235,7 @@ local pos_to_right = function(pos) return { line = pos.line, col = pos.col + 1 } end +-- Somewhat copied from mini.surround local function surround_treesitter(captures) return function() local matches = captures_inout(captures)