From 30ae7039c461b71bfc2c2c6a13445e6578c022f3 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 7 Jul 2024 19:52:22 +0200 Subject: common/nixvim: set mini search method, add splitjoin --- common/nixvim.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/nixvim.nix b/common/nixvim.nix index 02e6943..a5f34d9 100644 --- a/common/nixvim.nix +++ b/common/nixvim.nix @@ -347,6 +347,8 @@ in enable = true; modules = { ai.custom_textobjects = { + search_method = "cover_or_nearest"; + f.__raw = "require('mini.ai').gen_spec.treesitter({ a = '@function.outer', i = '@function.inner' })"; F.__raw = "require('mini.ai').gen_spec.treesitter({ a = '@call.outer', i = '@call.inner' })"; c.__raw = "require('mini.ai').gen_spec.treesitter({ a = '@comment.outer', i = '@comment.inner' })"; @@ -381,7 +383,8 @@ in } ]; }; - surround = { }; + splitjoin = { }; + surround.search_method = "cover_or_nearest"; trailspace = { }; }; }; -- cgit v1.2.3