feat: make nvim directory a symlink to nix-config dotfiles directory

This commit is contained in:
2025-08-07 17:24:30 +05:00
parent 41994e7f55
commit 64fa633f92
3 changed files with 42 additions and 44 deletions

View File

@@ -21,11 +21,6 @@
VISUAL = "nvim";
EDITOR = "nvim";
};
file = {
"${config.xdg.configHome}/nvim".source =
lib.custom.relativeToRoot "dotfiles/nvim";
};
};
home.packages = with pkgs; [

View File

@@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
programs.neovim = {
@@ -7,4 +7,8 @@
viAlias = true;
vimAlias = true;
};
# Create a symlink from ~/.config/nvim to the dotfiles directory
home.file.".config/nvim".source = config.lib.file.mkOutOfStoreSymlink
"${config.home.homeDirectory}/git/nix-config/dotfiles/nvim";
}