summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-24 16:46:28 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-24 16:46:28 -0400
commitd6fbd68749804fa9ca21d4a003c7c86df103aa81 (patch)
tree105f753d656867e293af054349e0eee958c3bc33 /home
parentmake neovim lsps toggle with development options (diff)
downloaddotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.tar.gz
dotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.tar.bz2
dotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.zip
use nixpkgs toLua fun
Diffstat (limited to 'home')
-rw-r--r--home/neovim/config.nix3
-rw-r--r--home/neovim/default.nix3
2 files changed, 2 insertions, 4 deletions
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";