Created
February 16, 2021 10:03
-
-
Save Mic92/4ed46845fef394f6dd853961ba9696a9 to your computer and use it in GitHub Desktop.
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
{ config, pkgs, ... }: | |
let | |
ayu-vim = pkgs.vimUtils.buildVimPluginFrom2Nix { | |
pname = "ayu-vim"; | |
version = "2017-12-09"; | |
src = pkgs.fetchFromGitHub { | |
owner = "ayu-theme"; | |
repo = "ayu-vim"; | |
rev = "4c418ff99fe898121643bf60cc0d9752c31c2937"; | |
sha256 = "0qfajz5g9fi65wkshyhcbcvqhbg7pgiirnazy1875nk3537kwl4z"; | |
}; | |
}; | |
nvim = pkgs.neovim.override { | |
vimAlias = true; | |
withPython = true; | |
configure = { | |
customRC = '' | |
if filereadable($HOME . "/.config/nvim/init.vim") | |
source ~/.config/nvim/init.vim | |
endif | |
let g:grammarous#show_first_error = 1 | |
''; | |
packages.nixbundle = with pkgs.vimPlugins; { | |
# loaded on launch | |
start = [ | |
ayu-vim | |
fugitive | |
rhubarb | |
vim-husk | |
UltiSnips | |
vim-autoformat | |
fzfWrapper | |
vim-devicons | |
ncm2 | |
ncm2-bufword | |
ncm2-path | |
ncm2-tmux | |
ncm2-ultisnips | |
vim-snippets | |
nvim-yarp | |
LanguageClient-neovim | |
airline | |
nerdtree | |
nerdtree-git-plugin | |
gruvbox | |
ack-vim | |
vim-go | |
vim-polyglot | |
ale | |
# delimitMat | |
editorconfig-vim | |
fzf-vim | |
rust-vim | |
vim-signify | |
vim-nix | |
]; | |
}; | |
}; | |
}; | |
in { | |
# Let Home Manager install and manage itself. | |
programs.home-manager.enable = true; | |
programs.zsh.enable = true; | |
programs.zsh.oh-my-zsh.enable = true; | |
programs.zsh.oh-my-zsh.theme = "robbyrussell"; | |
programs.direnv.enable = true; | |
programs.direnv.enableNixDirenvIntegration = true; | |
home.packages = with pkgs; [ | |
direnv | |
nvim | |
gdb | |
tig | |
python3.pkgs.mypy | |
python3.pkgs.black | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment