From 78066496b2b044409163744174921248ac41151c Mon Sep 17 00:00:00 2001 From: mewoocat Date: Wed, 24 Dec 2025 13:07:14 -0600 Subject: [PATCH] switch to filetype event --- modules/plugins/languages/markdown.nix | 2 +- modules/plugins/languages/nix.nix | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/modules/plugins/languages/markdown.nix b/modules/plugins/languages/markdown.nix index 2bacb512..05346242 100644 --- a/modules/plugins/languages/markdown.nix +++ b/modules/plugins/languages/markdown.nix @@ -209,7 +209,7 @@ in { (setLanguageIndent { language = "markdown"; - indentSize = 4; + indentSize = 6; }) ]); diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 0373e0ae..fb9da1aa 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -174,28 +174,5 @@ in { indentSize = cfg.indentSize; }) - /* - { - vim.autocmds = [ - { - desc = "Sets indent for nix files"; - event = ["BufEnter"]; - pattern = [ - "*.nix" - "*.md" - ]; - callback = lib.generators.mkLuaInline '' - function() - vim.opt.tabstop = ${toString cfg.indentSize} - vim.opt.softtabstop = ${toString cfg.indentSize} - vim.opt.shiftwidth = ${toString cfg.indentSize} - end - ''; - once = true; - } - ]; - } - */ - ]); }