neovim: trim final newline when copying to clipboard

This commit is contained in:
teutat3s 2023-07-02 15:16:02 +02:00
parent 3c141e7122
commit 61767e3796
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -5,8 +5,8 @@
let g:clipboard = {
\ 'name': 'wayland-strip-carriage',
\ 'copy': {
\ '+': 'wl-copy --foreground --type text/plain',
\ '*': 'wl-copy --foreground --type text/plain --primary',
\ '+': 'wl-copy --foreground --type text/plain --trim-newline',
\ '*': 'wl-copy --foreground --type text/plain --primary --trim-newline',
\ },
\ 'paste': {
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')},