diff --git a/modules/base/vim.nix b/modules/base/vim.nix index b30b051..8514c56 100644 --- a/modules/base/vim.nix +++ b/modules/base/vim.nix @@ -1,8 +1,30 @@ -{ ... }: { - programs.neovim = { - enable = true; - defaultEditor = true; - viAlias = true; - vimAlias = true; +{ home-manager, pkgs, ... }: { + home-manager.users.caspervk = { + programs.neovim = { + enable = true; + defaultEditor = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + plugins = with pkgs.vimPlugins; [ + vim-sleuth + ]; + extraPackages = with pkgs; [ ]; + extraConfig = '' + set number + set relativenumber + + set scrolloff=3 + + set ignorecase + set smartcase + + set tabstop=4 + set softtabstop=4 + set shiftwidth=4 + set expandtab + ''; + }; }; + environment.variables.EDITOR = "vim"; }