diff options
author | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
commit | 59180328cda59817d71cd58c8f48ead047375064 (patch) | |
tree | 2cdd7d1bfa309839ef624c19daf283f510aacf69 /modules/vim.nix | |
parent | 2025-02-05 (diff) |
2025-02-17
Diffstat (limited to 'modules/vim.nix')
-rw-r--r-- | modules/vim.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/vim.nix b/modules/vim.nix index f1dba85..6273957 100644 --- a/modules/vim.nix +++ b/modules/vim.nix @@ -5,23 +5,22 @@ this, ... }: -with lib; let cfg = config.nixfiles.modules.vim; in { - options.nixfiles.modules.vim.enable = mkEnableOption "Vim"; + options.nixfiles.modules.vim.enable = lib.mkEnableOption "Vim"; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { hm.stylix.targets.vim.enable = false; programs.vim = { enable = true; defaultEditor = true; - package = mkIf this.isHeadful ( + package = lib.mkIf this.isHeadful ( pkgs.vim-full.customize { name = "vim"; - vimrcConfig = with cfg; { + vimrcConfig = { customRC = '' let $VIMFILES = expand('<sfile>:p:h') @@ -193,6 +192,7 @@ in command WS w !sudo tee "%" >/dev/null ''; + packages.myVimPackage.start = with pkgs.vimPlugins; [ editorconfig-vim vim-eunuch |