2023-12-01 14:27:57 -07:00
|
|
|
{ pkgs, ... }:
|
2023-10-11 07:37:34 -06:00
|
|
|
with pkgs;
|
|
|
|
let
|
2023-12-01 14:27:57 -07:00
|
|
|
vimBuildTool = pkgs.vimUtils.buildVimPlugin;
|
2023-10-11 07:37:34 -06:00
|
|
|
parchment = vimBuildTool rec {
|
2022-10-26 10:19:10 -06:00
|
|
|
pname = "parchment";
|
|
|
|
version = "0.4.0";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "ajgrf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ZphConCGZR3EG6dd8Ji7U9Qtm21SoWMk60XD4X+My1g=";
|
|
|
|
};
|
|
|
|
};
|
2023-10-11 07:37:34 -06:00
|
|
|
vacme = vimBuildTool rec {
|
2022-10-26 10:19:10 -06:00
|
|
|
pname = "vacme";
|
|
|
|
version = "2017-01-14";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "olivertaylor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "2f0b284b5bc1c9dd5b7f0b89ac880959e61b0be4";
|
|
|
|
sha256 = "sha256-eea0Ntr3gCmF6iZ0adZaVswWH70K9IJZ4SAyVSdFp3E=";
|
|
|
|
};
|
|
|
|
};
|
2023-10-11 07:37:34 -06:00
|
|
|
obsidian = vimBuildTool rec {
|
2023-01-18 15:48:33 -07:00
|
|
|
pname = "obsidian-nvim";
|
2023-12-19 06:06:26 -07:00
|
|
|
version = "2.3.1";
|
2023-01-18 15:48:33 -07:00
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "epwalsh";
|
|
|
|
repo = "obsidian.nvim";
|
|
|
|
rev = "v${version}";
|
2023-12-19 06:06:26 -07:00
|
|
|
sha256 = "sha256-g9GFq5FMaCcJ6HbnhRgCmioLvaJ4SK6jSioDi5lXeP4=";
|
2023-01-18 15:48:33 -07:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
2023-12-19 06:06:26 -07:00
|
|
|
dependencies = with vimPlugins; [ nvim-cmp tabular plenary-nvim ];
|
2023-01-18 15:48:33 -07:00
|
|
|
};
|
2023-10-11 07:37:34 -06:00
|
|
|
neogen = vimBuildTool rec {
|
2023-01-23 17:30:06 -07:00
|
|
|
pname = "neogen";
|
|
|
|
version = "2023-01-16";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "danymat";
|
|
|
|
repo = pname;
|
|
|
|
rev = "465af9d6c6fb7f360175991dcc23fc10917e3a06";
|
|
|
|
sha256 = "sha256-I8vlVDSJQqFfLkqRS8lwdVAEUxKwi+IKSGFVqZ6l2SE=";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
};
|
2023-05-26 05:43:04 -06:00
|
|
|
|
|
|
|
MsgPackRaw = perlPackages.buildPerlPackage {
|
|
|
|
pname = "MsgPack-Raw";
|
|
|
|
version = "0.05";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://cpan/authors/id/J/JA/JACQUESG/MsgPack-Raw-0.05.tar.gz";
|
2023-07-11 09:12:50 -06:00
|
|
|
sha256 = "8559e2b64cd98d99abc666edf2a4c8724c9534612616af11f4eb0bbd0d422dac";
|
2023-05-26 05:43:04 -06:00
|
|
|
};
|
2023-09-12 08:44:05 -06:00
|
|
|
buildInputs = with perlPackages; [ TestPod TestPodCoverage ];
|
2023-05-26 05:43:04 -06:00
|
|
|
meta = {
|
|
|
|
description = "Perl bindings to the msgpack C library";
|
2023-09-12 08:44:05 -06:00
|
|
|
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
2023-05-26 05:43:04 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
EvalSafe = perlPackages.buildPerlPackage {
|
|
|
|
pname = "Eval-Safe";
|
|
|
|
version = "0.02";
|
|
|
|
src = fetchurl {
|
2023-07-11 09:12:50 -06:00
|
|
|
url = "mirror://cpan/authors/id/M/MA/MATHIAS/Eval-Safe/Eval-Safe-0.02.tar.gz";
|
|
|
|
sha256 = "55a52c233e2dae86113f9f19b34f617edcfc8416f9bece671267bd1811b12111";
|
2023-05-26 05:43:04 -06:00
|
|
|
};
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
outputs = [ "out" "dev" ];
|
2023-05-26 05:43:04 -06:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simplified safe evaluation of Perl code";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
NeovimExt = perlPackages.buildPerlPackage {
|
|
|
|
pname = "Neovim-Ext";
|
|
|
|
version = "0.06";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://cpan/authors/id/J/JA/JACQUESG/Neovim-Ext-0.06.tar.gz";
|
2023-07-11 09:12:50 -06:00
|
|
|
sha256 = "6d2ceb3062c96737dba556cb20463130fc4006871b25b7c4f66cd3819d4504b8";
|
2023-05-26 05:43:04 -06:00
|
|
|
};
|
|
|
|
buildInputs = with perlPackages; [
|
|
|
|
ArchiveZip
|
|
|
|
FileSlurper
|
|
|
|
FileWhich
|
|
|
|
ProcBackground
|
|
|
|
TestPod
|
|
|
|
TestPodCoverage
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = with perlPackages; [
|
|
|
|
ClassAccessor
|
|
|
|
EvalSafe
|
|
|
|
IOAsync
|
|
|
|
MsgPackRaw
|
|
|
|
];
|
|
|
|
|
|
|
|
# Attempts to download stuff from the internet.
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
outputs = [ "out" "dev" ];
|
2023-05-26 05:43:04 -06:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Perl bindings for neovim";
|
2023-09-12 08:44:05 -06:00
|
|
|
license = with lib.licenses; [ artistic1 gpl1Plus ];
|
2023-05-26 05:43:04 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-08-25 12:21:35 -06:00
|
|
|
baseVimPackages = with vimPlugins; [
|
2024-01-09 05:44:55 -07:00
|
|
|
#ale
|
2023-10-18 07:15:09 -06:00
|
|
|
conjure
|
2023-03-28 14:21:27 -06:00
|
|
|
elm-vim
|
2022-08-25 12:21:35 -06:00
|
|
|
fugitive
|
2022-12-23 12:55:50 -07:00
|
|
|
fzf-vim
|
2023-05-19 14:39:14 -06:00
|
|
|
haskell-vim
|
2023-07-11 13:16:57 -06:00
|
|
|
neoformat
|
2022-08-25 12:21:35 -06:00
|
|
|
nvim-compe
|
|
|
|
nvim-lspconfig
|
2022-10-07 20:07:26 -06:00
|
|
|
nvim-tree-lua
|
2023-05-13 12:49:44 -06:00
|
|
|
nvim-treesitter.withAllGrammars
|
2022-10-07 20:07:26 -06:00
|
|
|
rust-vim
|
2023-01-04 13:31:51 -07:00
|
|
|
telescope-fzf-native-nvim
|
2023-06-05 14:05:38 -06:00
|
|
|
telescope-manix
|
2023-01-04 13:31:51 -07:00
|
|
|
telescope-nvim
|
2023-06-16 11:04:01 -06:00
|
|
|
todo-comments-nvim
|
2022-10-07 20:07:26 -06:00
|
|
|
vimagit
|
2022-08-25 12:21:35 -06:00
|
|
|
vim-gitgutter
|
2023-06-05 14:05:38 -06:00
|
|
|
vim-go
|
2023-05-19 14:39:14 -06:00
|
|
|
vim-hindent
|
2023-01-16 06:43:06 -07:00
|
|
|
vim-lua
|
2023-01-18 15:48:33 -07:00
|
|
|
vim-markdown
|
2022-08-25 12:21:35 -06:00
|
|
|
vim-nix
|
2022-10-08 06:06:57 -06:00
|
|
|
vim-ocaml
|
2023-05-01 14:37:38 -06:00
|
|
|
vim-sleuth
|
2022-08-25 12:21:35 -06:00
|
|
|
zig-vim
|
2022-10-26 10:19:10 -06:00
|
|
|
|
2023-01-23 17:30:06 -07:00
|
|
|
neogen
|
|
|
|
obsidian
|
2022-10-26 10:19:10 -06:00
|
|
|
parchment
|
|
|
|
vacme
|
2022-08-25 12:21:35 -06:00
|
|
|
];
|
2023-09-12 08:44:05 -06:00
|
|
|
myVimPackages = baseVimPackages;
|
|
|
|
in
|
|
|
|
{
|
2023-01-05 06:45:49 -07:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-09-12 08:44:05 -06:00
|
|
|
nixpkgs-fmt
|
2023-03-28 14:21:27 -06:00
|
|
|
elmPackages.elm
|
|
|
|
elmPackages.elm-format
|
|
|
|
elmPackages.elm-language-server
|
2023-05-26 05:43:04 -06:00
|
|
|
fd
|
2023-01-16 06:43:06 -07:00
|
|
|
fzf
|
2023-01-05 06:45:49 -07:00
|
|
|
go
|
|
|
|
gopls
|
|
|
|
gotools
|
2023-05-19 14:39:14 -06:00
|
|
|
haskellPackages.haskell-language-server
|
|
|
|
haskellPackages.hindent
|
2023-01-16 06:43:06 -07:00
|
|
|
luaformatter
|
2023-03-28 14:21:27 -06:00
|
|
|
luajitPackages.lua-lsp
|
2023-01-05 06:45:49 -07:00
|
|
|
manix
|
2023-05-26 05:43:04 -06:00
|
|
|
nodejs
|
2023-07-27 10:27:09 -06:00
|
|
|
nodePackages.prettier
|
2023-05-02 11:21:07 -06:00
|
|
|
nodePackages.typescript-language-server
|
2023-05-26 05:43:04 -06:00
|
|
|
perl
|
2023-05-13 12:49:44 -06:00
|
|
|
perlPackages.PerlCritic
|
|
|
|
perlPackages.PLS
|
2023-01-16 06:43:06 -07:00
|
|
|
ripgrep
|
2023-01-18 05:37:39 -07:00
|
|
|
rubyPackages.solargraph
|
2023-05-02 11:21:07 -06:00
|
|
|
sumneko-lua-language-server
|
2023-05-26 05:43:04 -06:00
|
|
|
tree-sitter
|
2023-05-02 11:21:07 -06:00
|
|
|
zls
|
2023-05-26 05:43:04 -06:00
|
|
|
|
|
|
|
NeovimExt
|
2023-01-05 06:45:49 -07:00
|
|
|
];
|
2022-08-25 12:21:35 -06:00
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
configure = {
|
2023-09-12 08:44:05 -06:00
|
|
|
packages.myVimPackage = { start = myVimPackages; };
|
2022-08-25 12:21:35 -06:00
|
|
|
customRC = ''
|
|
|
|
" Restore cursor position
|
|
|
|
autocmd BufReadPost *
|
|
|
|
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
|
|
|
\ exe "normal! g`\"" |
|
|
|
|
\ endif
|
|
|
|
|
|
|
|
luafile ${./neovim.lua}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|