mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager
MIT License
216 stars 7 forks source link

feat: can open a directory from the command line #57

Closed mikavilpas closed 2 months ago

mikavilpas commented 2 months ago

When starting neovim from the command line, yazi would not open. E.g. nvim . would not open yazi. This commit adds the ability to open yazi from the command line.

This might also be supported in other plugins the user may have. I had to disable the functionality in neo-tree.nvim to get this to work.

{
  "nvim-neo-tree/neo-tree.nvim",
  opts = {
    filesystem = {
      hijack_netrw_behavior = "disabled",
    },
  },
}

See: https://github.com/mikavilpas/dotfiles/commit/3b5bc69917ee7e808eef0fc9734693d0141ea474#diff-8be1bcf06549d609352b9b2f97e7ceb027155091fe4067d0e9e70e1dee85ed04R36

Fixes #55