Skip to content

How to load a plugin if the OS is not windows? #596

Answered by rodamaral
quantum-booty asked this question in Q&A
Discussion options

You must be logged in to vote

Use the cond field

use {
    '<repo>',
     -- cond = string, function, or list of strings/functions,   -- Specifies a conditional test to load this plugin
    cond = function()
        return vim.fn.has 'win32' ~= 1
    end,
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quantum-booty
Comment options

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