Skip to content

Commit

Permalink
add path to config options
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshmllow committed Oct 10, 2024
1 parent 038b038 commit b9aff9b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ neovim = inputs.tolerable.makeNeovimConfig "MY_APPNAME" {
# passed to pkgs.neovimUtils.makeNeovimConfig
config = {
plugins = with pkgs.vimPlugins; [
nvim-treesitter.withAllGrammars
nvim-lspconfig
# ...
];
# add packages to the path that will be available to neovim
# (aka, LSP's)
# some packages have different binary names, and lspconfig may have to be adjusted
path = with pkgs; [
lua-language-server
nil
prettierd
# ...
];
};
Expand Down
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
package ? null,
buildInputs ? [],
doCheck ? true,
path ? [],
src,
...
}: let
Expand All @@ -61,6 +62,10 @@
"--set"
"NIX_ABS_CONFIG"
src
"--prefix"
"PATH"
":"
(pkgs.lib.makeBinPath path)
];
buildInputs = old.buildInputs or [] ++ buildInputs;
inherit doCheck;
Expand Down
3 changes: 3 additions & 0 deletions templates/nightly/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
catppuccin-nvim
];
};
path = with pkgs; [
lua-language-server
];
};
});
};
Expand Down
3 changes: 3 additions & 0 deletions templates/stable/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
catppuccin-nvim
];
};
path = with pkgs; [
lua-language-server
];
};
});
};
Expand Down

0 comments on commit b9aff9b

Please sign in to comment.