Add vim config
This commit is contained in:
parent
24d2bde205
commit
85bc364288
4 changed files with 25 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# nix
|
||||
|
||||
# NixOS Configuration Repository
|
||||
Repo for nix configuration files
|
||||
---
|
||||
# Information
|
||||
#### Common
|
||||
* Used to house all common configurations, including dotfiles
|
||||
|
@ -8,7 +8,7 @@ Repo for nix configuration files
|
|||
#### Desktops
|
||||
* Used to house DWM configurations, such as Gnome
|
||||
|
||||
#### Hardware
|
||||
#### Hosts
|
||||
* Contains hardware configurations
|
||||
|
||||
#### Software
|
||||
|
|
20
common/dotfiles/vim.nix
Normal file
20
common/dotfiles/vim.nix
Normal 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
|
||||
'';
|
||||
};
|
|
@ -10,6 +10,7 @@
|
|||
imports = [
|
||||
./dconf.nix
|
||||
../../common/dotfiles/git.nix
|
||||
../../common/dotfiles/vim.nix
|
||||
];
|
||||
};
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
imports = [
|
||||
./dconf.nix
|
||||
../../common/dotfiles/git.nix
|
||||
../../common/dotfiles/vim.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue