2022-08-25 12:21:35 -06:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with pkgs;
|
|
|
|
let
|
2022-10-26 10:19:10 -06:00
|
|
|
parchment = pkgs.vimUtils.buildVimPluginFrom2Nix rec {
|
|
|
|
pname = "parchment";
|
|
|
|
version = "0.4.0";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "ajgrf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ZphConCGZR3EG6dd8Ji7U9Qtm21SoWMk60XD4X+My1g=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
vacme = pkgs.vimUtils.buildVimPluginFrom2Nix rec {
|
|
|
|
pname = "vacme";
|
|
|
|
version = "2017-01-14";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "olivertaylor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "2f0b284b5bc1c9dd5b7f0b89ac880959e61b0be4";
|
|
|
|
sha256 = "sha256-eea0Ntr3gCmF6iZ0adZaVswWH70K9IJZ4SAyVSdFp3E=";
|
|
|
|
};
|
|
|
|
};
|
2022-08-25 12:21:35 -06:00
|
|
|
baseVimPackages = with vimPlugins; [
|
|
|
|
fugitive
|
|
|
|
nvim-compe
|
|
|
|
nvim-lspconfig
|
2022-10-07 20:07:26 -06:00
|
|
|
nvim-tree-lua
|
|
|
|
rust-vim
|
|
|
|
vimagit
|
2022-08-25 12:21:35 -06:00
|
|
|
vim-gitgutter
|
|
|
|
vim-nix
|
2022-10-08 06:06:57 -06:00
|
|
|
vim-ocaml
|
2022-08-25 12:21:35 -06:00
|
|
|
zig-vim
|
2022-10-26 10:19:10 -06:00
|
|
|
|
|
|
|
parchment
|
|
|
|
vacme
|
2022-08-25 12:21:35 -06:00
|
|
|
];
|
|
|
|
myVimPackages = if pkgs.system == "aarch64-linux" then
|
|
|
|
baseVimPackages
|
|
|
|
else
|
|
|
|
baseVimPackages ++ [ vimPlugins.vim-go ];
|
|
|
|
in {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
configure = {
|
|
|
|
packages.myVimPackage = { start = myVimPackages; };
|
|
|
|
customRC = ''
|
|
|
|
" Restore cursor position
|
|
|
|
autocmd BufReadPost *
|
|
|
|
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
|
|
|
\ exe "normal! g`\"" |
|
|
|
|
\ endif
|
|
|
|
|
|
|
|
luafile ${./neovim.lua}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|