neovim: trim final newline when copying to clipboard
This commit is contained in:
parent
9b5abf76ea
commit
eeb7c7ef3a
|
@ -5,8 +5,8 @@
|
||||||
let g:clipboard = {
|
let g:clipboard = {
|
||||||
\ 'name': 'wayland-strip-carriage',
|
\ 'name': 'wayland-strip-carriage',
|
||||||
\ 'copy': {
|
\ 'copy': {
|
||||||
\ '+': 'wl-copy --foreground --type text/plain',
|
\ '+': 'wl-copy --foreground --type text/plain --trim-newline',
|
||||||
\ '*': 'wl-copy --foreground --type text/plain --primary',
|
\ '*': 'wl-copy --foreground --type text/plain --primary --trim-newline',
|
||||||
\ },
|
\ },
|
||||||
\ 'paste': {
|
\ 'paste': {
|
||||||
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')},
|
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')},
|
||||||
|
|
Loading…
Reference in a new issue