summaryrefslogtreecommitdiff
path: root/neovim.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-06-12 04:51:04 -0400
committerseth <[email protected]>2024-06-12 04:51:04 -0400
commited5e6475f84eb097a547c60c759af07144016b78 (patch)
tree8212c727ae09df256edf60b65be4d9fcba0d9455 /neovim.nix
parent1784e84b6b01c651d78d257de4aeebe54858734a (diff)
nix: refactor derivations
Diffstat (limited to 'neovim.nix')
-rw-r--r--neovim.nix38
1 files changed, 21 insertions, 17 deletions
diff --git a/neovim.nix b/neovim.nix
index b42ccbd..648c58b 100644
--- a/neovim.nix
+++ b/neovim.nix
@@ -1,19 +1,23 @@
-self: {
+{
lib,
- pkgs,
+ neovimUtils,
+ vimPlugins,
+ wrapNeovimUnstable,
+ neovim-unwrapped,
+ actionlint,
+ alejandra,
+ beautysh,
+ ripgrep,
+ efm-langserver,
+ nil,
+ nodePackages,
+ shellcheck,
+ statix,
+ typos-lsp,
+ vimPlugins-getchoo-nvim,
...
}: let
- config = pkgs.vimUtils.buildVimPlugin {
- pname = "neovim-config";
- version = self.shortRev or self.dirtyShortRev or "unknown-dirty";
-
- src = lib.fileset.toSource {
- root = ./config;
- fileset = lib.fileset.gitTracked ./config;
- };
- };
-
- plugins = with pkgs.vimPlugins; [
+ plugins = with vimPlugins; [
bufferline-nvim
# dependent on >
nvim-web-devicons
@@ -57,7 +61,7 @@ self: {
which-key-nvim
];
- extraPackages = with pkgs; [
+ extraPackages = [
# cmp
ripgrep
@@ -76,11 +80,11 @@ self: {
typos-lsp
];
- neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
- plugins = plugins ++ [config];
+ neovimConfig = neovimUtils.makeNeovimConfig {
+ plugins = plugins ++ [vimPlugins-getchoo-nvim];
};
in
- pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped (
+ wrapNeovimUnstable neovim-unwrapped (
neovimConfig
// {
luaRcContent = ''