Skip to content

Commit

Permalink
fix using nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
pmihaly committed Jun 27, 2024
1 parent 2baee36 commit 92b8be0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/home-manager/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ in
".config/github-copilot"
];

programs.zsh.localVariables.EDITOR = "${config.programs.nixvim.finalPackage}/bin/nvim";

programs.nixvim = {
enable = true;

Expand Down
14 changes: 14 additions & 0 deletions modules/home-manager/yazi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ in
show_symlink = false;
sort_dir_first = true;
};
opener = {
edit = [
{
run = "${config.programs.zsh.localVariables.EDITOR} \"$@\"";
block = true;
}
];
play = [
{
run = "mpv \"$@\"";
orphan = true;
}
];
};
};
keymap.manager.prepend_keymap = bookmarksToYaziKeybindings cfg.bookmarks;
theme = { };
Expand Down

0 comments on commit 92b8be0

Please sign in to comment.