mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 06:50:11 -04:00
fixed nvim
This commit is contained in:
parent
a5e0bef85c
commit
6448224366
1 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.neovim;
|
||||
nvimConfigPath = "${config.home.homeDirectory}/nixos/user/modules/neovim/nvim";
|
||||
|
||||
in
|
||||
{ options.modules.user.neovim = { enable = mkEnableOption "user.neovim"; };
|
||||
|
|
@ -31,7 +32,9 @@ in
|
|||
};
|
||||
|
||||
home.file.".config/nvim" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink ./nvim;
|
||||
# Keep Neovim's config writable. In a flake, `./nvim` is copied into
|
||||
# /nix/store before Home Manager can create an out-of-store symlink.
|
||||
source = config.lib.file.mkOutOfStoreSymlink nvimConfigPath;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue