nix/common/dotfiles/vim.nix

23 lines
482 B
Nix
Raw Normal View History

2023-07-01 12:02:59 +02:00
{ config, pkgs, ... }: {
# https://nixos.wiki/wiki/Vim
programs.vim = {
enable = true;
plugins = with pkgs.vimPlugins; [ vim-airline ];
settings = { ignorecase = true; };
extraConfig = ''
set mouse=a
set number
syntax on
set hlsearch
set ignorecase
set smartcase
set autoindent
set ruler
set shiftwidth=2
set expandtab
set softtabstop=2
colorscheme slate
set cursorline
'';
};
}