From ccfcaaa214c8e57f2ed0bfe681f75b5f3a60c3ae Mon Sep 17 00:00:00 2001 From: Roel de Cort Date: Thu, 16 May 2024 01:20:04 +0200 Subject: [PATCH] add indentscope autoCmd --- config/auto_cmds.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/auto_cmds.nix b/config/auto_cmds.nix index a78f0d1..b96bf56 100644 --- a/config/auto_cmds.nix +++ b/config/auto_cmds.nix @@ -2,6 +2,7 @@ autoGroups = { highlight_yank = {}; vim_enter = {}; + indentscope = {}; }; autoCmd = [ @@ -29,5 +30,25 @@ ''; }; } + { + group = "indentscope"; + event = ["FileType"]; + pattern = [ + "help" + "Startup" + "startup" + "neo-tree" + "Trouble" + "trouble" + "notify" + ]; + callback = { + __raw = '' + function() + vim.b.miniindentscope_disable = true + end + ''; + }; + } ]; }