diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-24 16:46:28 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-24 16:46:28 -0400 |
commit | d6fbd68749804fa9ca21d4a003c7c86df103aa81 (patch) | |
tree | 105f753d656867e293af054349e0eee958c3bc33 /home/neovim | |
parent | make neovim lsps toggle with development options (diff) | |
download | dotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.tar.gz dotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.tar.bz2 dotfiles-nix-d6fbd68749804fa9ca21d4a003c7c86df103aa81.zip |
use nixpkgs toLua fun
Diffstat (limited to 'home/neovim')
-rw-r--r-- | home/neovim/config.nix | 3 | ||||
-rw-r--r-- | home/neovim/default.nix | 3 |
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"; |