diff --git a/users/youwen/common/neovim/default.nix b/users/youwen/common/neovim/default.nix index df6efd5..20357ad 100644 --- a/users/youwen/common/neovim/default.nix +++ b/users/youwen/common/neovim/default.nix @@ -304,33 +304,55 @@ { action = "(YankyPutAfter)"; key = "p"; - options = {}; mode = ["n" "x"]; } { action = "(YankyPutBefore)"; key = "P"; - options = {}; mode = ["n" "x"]; } { action = "(YankyGPutAfter)"; key = "gp"; - options = {}; mode = ["n" "x"]; } { action = "(YankyGPutBefore)"; key = "gP"; - options = {}; mode = ["n" "x"]; } { action = ":Telescope yank_history"; key = "p"; - options = {}; mode = "n"; } + { + action = '':lua require("yazi").yazi()''; + key = "mm"; + options = { + desc = "Open Yazi current nvim working directory"; + noremap = true; + silent = true; + }; + } + { + action = '':lua require("yazi").yazi("cwd")''; + key = "mm"; + options = { + desc = "Open Yazi current nvim working directory"; + noremap = true; + silent = true; + }; + } + # { + # action = ":Yazi"; + # key = "mf"; + # options = { + # desc = "Open Yazi at current file"; + # noremap = true; + # silent = true; + # }; + # } # { # action = "lua require'conform'.format({ bufnr = args.bf })"; # key = "cf"; @@ -515,6 +537,12 @@ "_" = ["trim_whitespace"]; }; }; + yazi = { + enable = true; + settings = { + open_for_directories = true; + }; + }; }; extraPlugins = [