home/home/vim.nix

39 lines
981 B
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# This module sets up a "full" neovim install with plugins and unicorns. It
# also makes neovim the default editor and aliases vim to nvim.
{
pkgs,
lib,
strings,
...
}: {
home.sessionVariables = {"EDITOR" = "nvim";};
home.packages = with pkgs; [rnix-lsp ripgrep];
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
# Basic stuff
vim-sensible
vim-noctu # 16color colorscheme
gruvbox-nvim
fzfWrapper # The basic "built in" fzf stuff
fzf-vim # The fancier opt in fzf stuff
# The only language plugin you always need... because if it's running nixos you
# *will* be editing nix files!
vim-nix
# Git stuff
fugitive
vim-gitgutter
# More stuff idk
emmet-vim
vim-sleuth # guess whitespace settings from file
];
extraConfig = ''
lua <<EOF
${builtins.readFile ./init.lua}
EOF
'';
};
}