infra/pkg-configuration/vim-derivates/neovim.nix
Stefan Junker f3683fcda9 steveej-laptop: commit current config
* disable CPU wining
* migrate system packages away to out-of-tree home-manger
* vim: disable deoplete
* enable the firewall
* upgrade syntax for release 18.03
* enable gnome services (again)
2018-05-04 09:13:54 +02:00

33 lines
807 B
Nix

{ pkgs
, additionalRC ? ""
, additionalPlugins ? []
, ... }:
pkgs.neovim.override {
vimAlias = true;
configure = {
# add custom .vimrc lines like this:
customRC = (import ./commonrc.nix {}) + ''
" deoplete {
" let g:deoplete#enable_at_startup = 1
" let g:deoplete#enable_smart_case = 1
" }
'' + additionalRC;
vam.knownPlugins = pkgs.vimPlugins; # optional
vam.pluginDictionaries = [ # full ducomentation at github.com/MarcWeber/vim-addon-manager
"vim-addon-vim2nix"
"vim-airline"
"vim-addon-nix"
"ctrlp"
"vim-css-color"
"rainbow_parentheses"
"vim-colorschemes"
"vim-colorstepper"
"vim-signify"
# "deoplete-nvim"
] ++ additionalPlugins;
};
extraPythonPackages = [];
withPython3 = true;
}