forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
34 lines (31 loc) · 807 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ pkgs ? import <nixpkgs> {} }:
let
neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
extraLuaPackages = p: with p; [
p.magick # for image rendering
];
extraPython3Packages = p: with p; [
pynvim
jupyter-client
cairosvg # for image rendering
ipython
nbformat
];
extraPackages = p: with p; [
imageMagick # for image rendering
];
withNodeJs = true;
withRuby = true;
withPython3 = true;
customRC = "luafile ~/.config/nvim/init.lua";
};
neovim-custom = pkgs.wrapNeovimUnstable
(pkgs.neovim-unwrapped.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.tree-sitter ];
})) neovimConfig;
in pkgs.mkShell {
buildInputs = with pkgs; [
neovim-custom
python3Packages.jupytext
];
}