nixos/modules/base/vim.nix

31 lines
616 B
Nix
Raw Normal View History

2023-08-04 13:13:06 +02:00
{ 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
'';
};
2023-08-01 15:35:09 +02:00
};
2023-08-04 13:13:06 +02:00
environment.variables.EDITOR = "vim";
2023-08-01 15:35:09 +02:00
}