AckslD / nvim-neoclip.lua

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

hi, i have some trouble,cloud you help me #34

Closed 1096015776 closed 2 years ago

1096015776 commented 2 years ago

i want to use to select next item and to select preve item,i read these document, I could not found some config to set the map,clould you help me, please

AckslD commented 2 years ago

Hi @1096015776, are you asking how to navigate between rows in the telescope picker? If so, then you should be able to do this with j/k (normal mode) or arrow keys (normal and insert mode).

1096015776 commented 2 years ago

thanks for your answer ,i just wan ro config map some key to change because some plugin i use c-p to select prev item and c-n to select next item,if it is different for others,i feel sad,because i like the plugin

AckslD commented 2 years ago

These key mappings are the default ones from telescope so you'd change them in your telescope config. For how to do this see either :help telescope.defaults.mappings or https://github.com/nvim-telescope/telescope.nvim#default-mappings.

xeluxee commented 2 years ago

I was experiencing the same issue. Solved with this config

require('neoclip').setup {
    keys = { telescope = { i = {
        paste = '<nop>',
        paste_behind = '<nop>',
    }}}
}
AckslD commented 2 years ago

Oh now I understand, thanks for clarifying @xeluxee :)

You can also set them to another key if you want instead of <nop>.

1096015776 commented 2 years ago

thanks for your answer,it let me feel better when i coding.

AckslD commented 2 years ago

I'm glad to hear @1096015776 :)