some vim config

This commit is contained in:
Casper V. Kristensen 2023-08-04 13:13:06 +02:00
parent cf12b4ad67
commit ba079f03e2

View file

@ -1,8 +1,30 @@
{ ... }: { { home-manager, pkgs, ... }: {
home-manager.users.caspervk = {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true; viAlias = true;
vimAlias = 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";
} }