-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packer "cond" alternaive #89
Comments
You can use |
if the enabled function returns false lazy marks the plugins for clean. so if user runs clean or sync they'll be deleted. cond doesn't I had it set so if |
Another difference is I have
(not relevant to this issue, it would be helpful if |
@Congee just use |
Ahh thanks, I was using |
Be aware, that a of of plugins set filetypes like Better would be |
Interesting, I switched to "BufReadPre". thanks for the pro tip 😁 |
@folke Another use case for this feature is when using neovim inside VSCode. In that case, you want your treesitter, LSP, colorscheme, statusline, etc... plugins to load only when not running inside vscode but you don't want your plugin manager to uninstall/reinstall everything each time you switch editors. With packer you can do that with e.g.: use {
'nvim-treesitter/nvim-treesitter',
cond = [[not vim.g.vscode]],
} As @shadmansaleh mentioned, It would be nice if lazy could support this feature. |
Any alternative to cond in packer:
my packer config usecase
load vim-oscyank only when connected via SSH
The text was updated successfully, but these errors were encountered: