Created
June 15, 2018 11:15
-
-
Save betaboon/2ea158e09f7821dd5f4528667c7ea497 to your computer and use it in GitHub Desktop.
neovim.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ... }: | |
let | |
buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix; | |
in { | |
environment.variables.EDITOR = "nvim"; | |
nixpkgs.config.packageOverrides = pkgs: { | |
neovim = pkgs.neovim.override { | |
vimAlias = true; | |
configure = { | |
customRC = '' | |
let g:deoplete#enable_at_startup = 1 | |
let g:syntastic_python_checkers = ['python', 'pylint', 'flake8'] | |
let g:syntastic_python_flake8_args='--ignore=E501' | |
let g:syntastic_python_pylint_args='--disable=F0401,C0111,C0103' | |
let g:airline_theme = 'minimalist' | |
let g:airline_powerline_fonts = 1 | |
''; | |
vam = { | |
knownPlugins = pkgs.vimPlugins // { | |
"airline-themes" = buildVimPlugin { | |
name = "airline-themes"; | |
src = pkgs.fetchgit { | |
url = "https://github.com/vim-airline/vim-airline-themes.git"; | |
rev = "01d52d7dd8124c7079e9b09bdae403025ccb3cea"; | |
sha256 = "1yl784584yrlp08dvqxca2glzm832lf286xswkdsd119a5xnwysr"; | |
}; | |
}; | |
}; | |
pluginDictionaries = [ { names = [ | |
"airline" | |
"airline-themes" | |
"deoplete-jedi" | |
"deoplete-nvim" | |
"flake8-vim" | |
"floobits-neovim" | |
"fugitive" | |
"nerdcommenter" | |
"nerdtree" | |
"syntastic" | |
"vim-nix" | |
]; } ]; | |
}; | |
}; | |
}; | |
}; | |
environment.systemPackages = with pkgs; [ | |
neovim | |
pythonPackages.flake8 | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment