Skip to content
Discussion options

You must be logged in to vote

Maybe something like the below? Haven't tested it

{
  'justinmk/vim-dirvish',
  keys = '-',
  ft = 'netrw',
  init = function()
   if vim.fn.argc() == 1 and vim.fn.isdirectory(vim.fn.argv(0)) then
     require("lazy").load({plugins = {"vim-dirvish"}})
    end
  end
}

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@folke
Comment options

folke Mar 2, 2023
Maintainer

@unrealapex
Comment options

@folke
Comment options

folke Mar 2, 2023
Maintainer

@xulongwu4
Comment options

@unrealapex
Comment options

Answer selected by unrealapex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants