AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
995 stars 20 forks source link

Resolve #66 by allowing users to disable mappings by passing false #76

Closed matthewswitzer closed 2 years ago

matthewswitzer commented 2 years ago

Hello, wanting to provide a fix for #66 that will allow users to disable mappings by passing false.

Example

require(‘neoclip’).setup({
    keys = {
        telescope = {
            i = {
                paste = false — will restore telescope default <c-p> action to move to prev item
            }
        }
    }
})
matthewswitzer commented 2 years ago

Great idea, that’s much cleaner. I’ve updated my branch with the suggested code.

Edited the PR title and my original comment to clarify that false will need to be passed with these changes, since other falsy (‘’, 0, etc.) won’t work.

AckslD commented 2 years ago

Thanks! 🚀