Added Nixvim
This commit is contained in:
37
home/neovim/yazi.nix
Normal file
37
home/neovim/yazi.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
yazi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
open_for_directories = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fy";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('yazi').yazi(nil, vim.loop.cwd())
|
||||
end
|
||||
'';
|
||||
options.desc = "Open Yazi file manager";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fd";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require('yazi').yazi(nil, vim.fn.expand("%:p:h"))
|
||||
end
|
||||
'';
|
||||
options.desc = "Open Yazi in current file directory";
|
||||
}
|
||||
];
|
||||
|
||||
extraPackages = with pkgs; [ yazi ];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user