Skip to content

How to define keymap when using opts #1683

Closed Answered by realguse
realguse asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out:

return {
    "stevearc/oil.nvim",
    keys = {
        { "-", function() require("oil").toggle_float() end },
    },
    opts = {
        skip_confirm_for_simple_edits = true,
        view_options = {
            show_hidden = true,
        },
        float = {
            padding = 4,
        },
    },
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by realguse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant