mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-10 13:10:26 +00:00
Remove wayland clipboard workaround
This commit is contained in:
parent
9cb6ad7008
commit
9b569a2266
@ -53,22 +53,3 @@ g.mapleader = " "
|
|||||||
o.tabstop = 4
|
o.tabstop = 4
|
||||||
o.shiftwidth = 4
|
o.shiftwidth = 4
|
||||||
o.smartindent = true
|
o.smartindent = true
|
||||||
|
|
||||||
-- 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).
|
|
||||||
vim.cmd([[
|
|
||||||
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,
|
|
||||||
\ }
|
|
||||||
]])
|
|
||||||
|
Loading…
Reference in New Issue
Block a user