Add vim config

This commit is contained in:
iFargle 2023-07-01 18:51:07 +09:00
parent 24d2bde205
commit 85bc364288
4 changed files with 25 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# nix # NixOS Configuration Repository
Repo for nix configuration files Repo for nix configuration files
---
# Information # Information
#### Common #### Common
* Used to house all common configurations, including dotfiles * Used to house all common configurations, including dotfiles
@ -8,7 +8,7 @@ Repo for nix configuration files
#### Desktops #### Desktops
* Used to house DWM configurations, such as Gnome * Used to house DWM configurations, such as Gnome
#### Hardware #### Hosts
* Contains hardware configurations * Contains hardware configurations
#### Software #### Software

20
common/dotfiles/vim.nix Normal file
View file

@ -0,0 +1,20 @@
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
'';
};

View file

@ -10,6 +10,7 @@
imports = [ imports = [
./dconf.nix ./dconf.nix
../../common/dotfiles/git.nix ../../common/dotfiles/git.nix
../../common/dotfiles/vim.nix
]; ];
}; };
} }

View file

@ -10,6 +10,7 @@
imports = [ imports = [
./dconf.nix ./dconf.nix
../../common/dotfiles/git.nix ../../common/dotfiles/git.nix
../../common/dotfiles/vim.nix
]; ];
}; };
} }