From 8c5257088b04a1432cf2d4e06e0c271934d018be Mon Sep 17 00:00:00 2001 From: n0099 Date: Tue, 8 Jul 2025 05:37:42 +0800 Subject: [PATCH] modules/files: improve `extraFiles` example --- modules/files.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/files.nix b/modules/files.nix index 6389e211..54d543f9 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -102,10 +102,10 @@ in default = { }; example = lib.literalExpression '' { - "ftplugin/nix.lua".text = ''' - vim.opt.tabstop = 2 - vim.opt.shiftwidth = 2 - vim.opt.expandtab = true + "after/ftplugin/nix.lua".text = ''' + vim.opt_local.tabstop = 2 + vim.opt_local.shiftwidth = 2 + vim.opt_local.expandtab = true '''; } '';