diff options
Diffstat (limited to 'modules/vim.nix')
| -rw-r--r-- | modules/vim.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/vim.nix b/modules/vim.nix new file mode 100644 index 0000000..a511bc1 --- /dev/null +++ b/modules/vim.nix @@ -0,0 +1,34 @@ +{ pkgs, ... }: + +let + vim-configured = + with pkgs; + vim-full.customize { + name = "vim"; # explicitly replace vim + + vimrcConfig = { + customRC = builtins.readFile ../configs/.vimrc; + + packages.collection = with vimPlugins; { + start = [ + YouCompleteMe + fzf-vim + vim-easymotion + vim-sleuth + vim-better-whitespace + vim-tmux-navigator + ]; + + opt = [ ]; + }; + }; + }; + +in +{ + programs.vim = { + defaultEditor = true; + + package = vim-configured; + }; +} |
