home/home/vim.nix

38 lines
925 B
Nix
Raw Normal View History

2022-02-28 23:44:01 +00:00
# This module sets up a "full" neovim install with plugins and unicorns. It
# also makes neovim the default editor and aliases vim to nvim.
2022-06-14 02:00:46 +01:00
{
pkgs,
lib,
strings,
...
}: {
home.sessionVariables = {"EDITOR" = "nvim";};
home.packages = with pkgs; [rnix-lsp ripgrep];
2022-01-18 01:01:59 +00:00
programs.neovim = {
enable = true;
2022-02-28 23:44:01 +00:00
viAlias = true;
vimAlias = true;
2022-03-01 14:51:42 +00:00
plugins = with pkgs.vimPlugins; [
2022-02-28 23:44:01 +00:00
# Basic stuff
vim-sensible
2022-03-01 14:51:42 +00:00
vim-noctu # 16color colorscheme
2022-02-28 23:44:01 +00:00
gruvbox-nvim
2022-03-09 12:42:14 +00:00
fzfWrapper # The basic "built in" fzf stuff
fzf-vim # The fancier opt in fzf stuff
2022-04-01 17:00:23 +01:00
# The only language plugin you always need... because if it's running nixos you
# *will* be editing nix files!
vim-nix
2022-02-28 23:44:01 +00:00
# Git stuff
2022-03-01 14:51:42 +00:00
fugitive
2022-02-28 23:44:01 +00:00
vim-gitgutter
2022-03-30 22:22:01 +01:00
# More stuff idk
emmet-vim
2022-02-28 23:44:01 +00:00
];
2022-01-18 01:01:59 +00:00
extraConfig = ''
2022-03-01 14:51:42 +00:00
lua <<EOF
${builtins.readFile ./init.lua}
EOF
2022-01-18 01:01:59 +00:00
'';
};
}