Open hrai opened 1 year ago
Try running :lua require('telescope').load_extension('neoclip')
on startup
This works.
But now when I select a new pasted item after I enter :Telescope neoclip
, it updates the default register but I'm using WSL so the clipboard setting is different and so the paste p
doesn't paste the content of default register "
let g:clipboard = {
\ 'name': 'WslClipboard',
\ 'copy': {
\ '+': 'clip.exe',
\ '*': 'clip.exe',
\ },
\ 'paste': {
\ '+': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
\ '*': 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))',
\ },
\ 'cache_enabled': 0,
\ }
@hrai you can chose which register to populate with :Telescope neoclip <reg>
, for example :Telescope neoclip a
or :Telescope neoclip plus
. You can also directly paste the entry with <C-p>
(insert) or p
(normal) mode from the picker.
When I run the command
:Telescope neoclip
, I get the error below:I'm on lunarvim on WSL Ubuntu 22.x
My config