From bbf003bfaf7dc1d8175984c4c759141db383ef5f Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 13 Oct 2023 13:46:54 -0400 Subject: [PATCH] replace tab setting with global editorconfig --- modules/cli/default.nix | 7 +++++++ modules/vim/init.lua | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/cli/default.nix b/modules/cli/default.nix index bc34e06..8b0f3c6 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -72,6 +72,13 @@ ]; + system.activationScripts.editorconfig = '' + cat </.editorconfig + [*] + tab_width = 4 + EOF + ''; + environment.variables.HTOPRC = "/dev/null"; programs.htop = { enable = true; diff --git a/modules/vim/init.lua b/modules/vim/init.lua index 5035414..4da53e9 100644 --- a/modules/vim/init.lua +++ b/modules/vim/init.lua @@ -1,8 +1,6 @@ lvim.format_on_save = true vim.opt.relativenumber = true -vim.opt.shiftwidth = 4 -vim.opt.tabstop = 4 vim.opt.whichwrap = "" local formatters = require "lvim.lsp.null-ls.formatters"