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 @@
{ ... }: {
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";
}