mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
a7cd4e5d21
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
19 lines
768 B
VimL
19 lines
768 B
VimL
{%@@ if profile == "Mirkwood" @@%}
|
|
" Wayland clipboard provider that strips carriage returns (GTK3 issue).
|
|
" This is needed because currently there's an issue where GTK3 applications on
|
|
" Wayland contain carriage returns at the end of the lines (this is a root
|
|
" issue that needs to be fixed).
|
|
let g:clipboard = {
|
|
\ 'name': 'wayland-strip-carriage',
|
|
\ 'copy': {
|
|
\ '+': 'wl-copy --foreground --type text/plain',
|
|
\ '*': 'wl-copy --foreground --type text/plain --primary',
|
|
\ },
|
|
\ 'paste': {
|
|
\ '+': {-> systemlist('wl-paste --no-newline | tr -d "\r"')},
|
|
\ '*': {-> systemlist('wl-paste --no-newline --primary | tr -d "\r"')},
|
|
\ },
|
|
\ 'cache_enabled': 1,
|
|
\ }
|
|
{%@@ endif @@%}
|