From d6fbd68749804fa9ca21d4a003c7c86df103aa81 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 24 Jun 2025 16:46:28 -0400 Subject: use nixpkgs toLua fun --- home/neovim/config.nix | 3 +-- home/neovim/default.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'home') diff --git a/home/neovim/config.nix b/home/neovim/config.nix index 8e04b84..a0c66dd 100644 --- a/home/neovim/config.nix +++ b/home/neovim/config.nix @@ -1,11 +1,10 @@ { lib, config, - self, }: let inherit (lib) optionalAttrs; in - self.lib.toLua { + (lib.generators.toLua {}) { # Width of tabs in the editor tabwidth = 4; # If tabs should be expanded to spaces diff --git a/home/neovim/default.nix b/home/neovim/default.nix index 7d3f331..b5f34d6 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -2,10 +2,9 @@ config, lib, pkgs, - self, ... }: let - lua_cfg = import ./config.nix {inherit lib config self;}; + lua_cfg = import ./config.nix {inherit lib config;}; lua = builtins.readFile ./init.lua; in { environment.variables.EDITOR = "nvim"; -- cgit v1.2.3-freya