|
@@ -9,6 +9,7 @@
|
|
|
, vimPlugins
|
|
|
, fetchFromGitHub
|
|
|
, withPlayground ? false
|
|
|
+, withLuadev ? false
|
|
|
}:
|
|
|
let
|
|
|
buildNeovimPlugin = attrs: stdenv.mkDerivation ({
|
|
@@ -58,9 +59,13 @@ let
|
|
|
tree-sitter-query
|
|
|
]));
|
|
|
in
|
|
|
- [ nvim-treesitter ] ++ nvim-treesitter.dependencies ++ lib.optionals withPlayground [
|
|
|
+ [ nvim-treesitter ] ++ nvim-treesitter.dependencies
|
|
|
+ ++ (lib.optionals withPlayground [
|
|
|
vimPlugins.playground
|
|
|
- ];
|
|
|
+ ])
|
|
|
+ ++ (lib.optionals withLuadev [
|
|
|
+ vimPlugins.nvim-luadev
|
|
|
+ ]);
|
|
|
|
|
|
pinnedPlugins = import ./plugins {
|
|
|
inherit buildNeovimPlugin fetchFromGitHub;
|
|
@@ -93,6 +98,8 @@ stdenv.mkDerivation {
|
|
|
source ${./theme.lua}
|
|
|
'' + lib.optionalString withPlayground ''
|
|
|
source ${./playground.lua}
|
|
|
+ '' + lib.optionalString withLuadev ''
|
|
|
+ source ${./luadev.lua}
|
|
|
'';
|
|
|
|
|
|
passAsFile = [ "initVim" ];
|