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-01-18 01:01:59 +00:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
home.sessionVariables = { "EDITOR" = "nvim"; };
|
2022-02-28 23:44:01 +00:00
|
|
|
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;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
# Basic stuff
|
|
|
|
vim-sensible
|
|
|
|
vim-noctu # 16color colorscheme
|
|
|
|
gruvbox-nvim
|
|
|
|
fzfWrapper
|
|
|
|
# More fancy shit
|
|
|
|
nvim-treesitter
|
|
|
|
# Language stuff
|
|
|
|
nvim-lspconfig
|
|
|
|
trouble-nvim
|
|
|
|
vim-nix
|
|
|
|
rust-vim
|
|
|
|
vim-go
|
|
|
|
# Git stuff
|
|
|
|
fugitive
|
|
|
|
vim-gitgutter
|
|
|
|
];
|
2022-01-18 01:01:59 +00:00
|
|
|
extraConfig = ''
|
2022-02-28 23:44:01 +00:00
|
|
|
lua <<EOF
|
|
|
|
${builtins.readFile ./init.lua}
|
|
|
|
EOF
|
2022-01-18 01:01:59 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|