neovim: changes to how we access nvf.lib

This commit is contained in:
ooks-io 2025-01-06 16:27:13 +11:00
parent 7868ac1529
commit 8d9c2a0ed2
39 changed files with 30 additions and 28 deletions

View file

@ -8,7 +8,6 @@
# my scuffed lib
ook-lib = {
builders = import ./builders.nix {inherit self lib inputs;};
mkNeovim = import ./mkNeovim.nix {inherit inputs;};
math = import ./math.nix {inherit lib;};
container = import ./containers.nix {inherit lib config;};
services = import ./services.nix {inherit lib;};

View file

@ -1,12 +0,0 @@
{inputs, ...}: let
inherit (inputs.nvf.lib) neovimConfiguration;
mkNeovim = pkgs: modules:
(neovimConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs;};
inherit modules;
})
.neovim;
in
mkNeovim

View file

@ -1,7 +1,9 @@
{ook, ...}: {
{
inputs,
lib,
...
}: {
perSystem = {pkgs, ...}: let
inherit (ook.lib) mkNeovim;
ook-vim-config = import ./ook-vim;
inherit (pkgs) callPackage;
in {
packages = {
@ -10,7 +12,8 @@
website = callPackage ./website {};
caddy-with-cloudflare = callPackage ./caddy-with-cloudflare {};
ook-vim = mkNeovim pkgs [ook-vim-config];
#ook-vim = mkNeovim pkgs [ook-vim-config];
ook-vim = callPackage ./ook-vim {inherit inputs pkgs lib;};
};
};
}

View file

@ -0,0 +1,10 @@
{
imports = [
./settings.nix
./opts.nix
./theme.nix
./keymaps.nix
./plugins
./modules
];
}

View file

@ -7,7 +7,7 @@
}: let
inherit (lib) mkOption mkIf boolToString;
inherit (lib.types) bool enum lines;
inherit (inputs.nvf.lib.nvim.dag) entryAfter;
inherit (lib.nvim.dag) entryAfter;
cfg = config.vim.gruvbox-material;
in {

View file

@ -1,10 +1,13 @@
{
imports = [
./settings.nix
./opts.nix
./theme.nix
./keymaps.nix
./plugins
./modules
];
}
inputs,
pkgs,
...
}: let
configuration = import ./config;
ooks-vim = inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs;};
modules = [configuration];
};
in
ooks-vim.neovim