Closed uyha closed 1 year ago
Amazing, thank you!
This has broken autoloading when using neovim with nix. This is how nix wraps neovim: exec -a "$0" "/nix/store/j7qzl35ha3bi0wpgll37ayfz9fisik3s-neovim-unwrapped-0.9.1/bin/nvim" --cmd "lua vim.g.node_host_prog='/nix/store/ya3l2i6bbadd278brh1j0cbpmqzyfml0-neovim-0.9.1/bin/nvim-node';vim.g.loaded_python_provider=0;vim.g.python 3_host_prog='/nix/store/ya3l2i6bbadd278brh1j0cbpmqzyfml0-neovim-0.9.1/bin/nvim-python3';vim.g.ruby_host_prog='/nix/store/ya3l2i6bbadd278brh1j0cbpmqzyfml0-neovim-0.9.1/bin/nvim-ruby'" "$@"
@utkarshgupta137 thanks for pointing this out! I've reverted this fix for now.
@uyha - We'll need to think of another way for this to work
how about checking for either +Man!
or -c Man!
is in the vim.v.argv
?
@utkarshgupta137 thanks for pointing this out! I've reverted this fix for now.
@uyha - We'll need to think of another way for this to work
I'd be happy to test any alternative versions.
Any update on this? I'm trying to figure out how to use MANPAGER and autoload together.
@zhengpd
autoload = not vim.tbl_contains(vim.v.argv, "+Man!")
When nvim is used as a man pager with
export MANPAGER='nvim +Man! '
, with autoload set to true, persisted.nvim still autoloads the current directory which is not desirable