Hey. I’ve switched to neovim but my clipboard wasn’t working. I found this snippet on neovim docs:
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,
\ }
Here’s my (incorrext) attempt of translating it:
vim.opt.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,
}
How do I properly translate it?