2022-03-08 11:53:17 +00:00
|
|
|
{ config, pkgs, lib, inputs, ... }: {
|
2022-03-08 09:56:54 +00:00
|
|
|
home.file.".vimrc".source = ../../../.vimrc;
|
|
|
|
home.packages = with pkgs; [ ripgrep ];
|
2021-11-22 19:32:26 +00:00
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
withNodeJs = true;
|
|
|
|
withPython3 = true;
|
|
|
|
withRuby = true;
|
2021-09-22 13:41:05 +01:00
|
|
|
|
2022-03-08 11:53:17 +00:00
|
|
|
plugins = with pkgs;
|
|
|
|
with pkgs.vimPlugins; [
|
|
|
|
(vimUtils.buildVimPluginFrom2Nix rec {
|
|
|
|
pname = "srht.vim";
|
|
|
|
version = "2022-01-04";
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~willdurand";
|
|
|
|
repo = pname;
|
|
|
|
rev = "825e685f75464cbd41a5f8eded974e46f416355e";
|
|
|
|
sha256 = "sha256-9/Yeqmq/1ZIIsEgsrLLZ7o0cjOt/wlUgeLEzJoK7eco=";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
ack-vim
|
|
|
|
coc-highlight
|
|
|
|
coc-nvim
|
|
|
|
coc-rust-analyzer
|
|
|
|
coc-yaml
|
|
|
|
ctrlp-vim
|
|
|
|
editorconfig-vim
|
|
|
|
fzf-vim
|
|
|
|
nvim-tree-lua
|
|
|
|
nvim-web-devicons
|
|
|
|
quickfix-reflector-vim
|
|
|
|
rainbow
|
|
|
|
tabular
|
|
|
|
vim-airline
|
|
|
|
vim-airline-themes
|
|
|
|
vim-autoformat
|
|
|
|
vim-colors-solarized
|
|
|
|
vim-devicons
|
|
|
|
vim-dirdiff
|
|
|
|
vim-dispatch
|
|
|
|
vim-fugitive
|
|
|
|
vim-gitgutter
|
|
|
|
vim-markdown
|
|
|
|
vim-nix
|
|
|
|
vim-sensible
|
|
|
|
vim-startify
|
|
|
|
vim-surround
|
|
|
|
vim-toml
|
|
|
|
];
|
2021-11-22 19:32:26 +00:00
|
|
|
extraConfig = ''
|
|
|
|
if filereadable($HOME . "/.vimrc")
|
2022-03-08 09:56:54 +00:00
|
|
|
source $HOME/.vimrc
|
2021-11-22 19:32:26 +00:00
|
|
|
endif
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|