Help Lazy Loading Vim-Dirvish #451
-
How would one go about lazy loading vim-dirvish? I can set it to load on keymap but it does not load on Netrw/when Neovim is opened with a directory( {
'justinmk/vim-dirvish',
lazy = true,
keys = '-',
ft = 'netrw'
} |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Jan 25, 2023
Replies: 1 comment 13 replies
-
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
} |
Beta Was this translation helpful? Give feedback.
13 replies
Answer selected by
unrealapex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe something like the below? Haven't tested it