From 7d318b2512e641f55b51d66ec603d843f2c57a5b Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 24 Jan 2023 13:00:38 +0100 Subject: [PATCH] refine the wsl clipboard --- lua/config/options.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 5d9ddfc..b8a7594 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -36,18 +36,18 @@ opt.splitright= true opt.shiftwidth = indent opt.tabstop = indent if vim.fn.has("wsl") == 1 then - vim.g.clipboard = { - name = "win32yank-wsl", - copy = { - ["+"] = "win32yank.exe -i --crlf", - ["*"] = "win32yank.exe -i --crlf", - }, - paste = { - ["+"] = "win32yank.exe -o --lf", - ["*"] = "win32yank.exe -o --lf", - }, - cache_enabled = 0, - } + vim.g.clipboard = { + name = 'WslClipboard', + copy = { + ['+'] = 'win32yank.exe -i --crlf', + ['*'] = 'win32yank.exe -i --crlf', + }, + paste = { + ['+'] = 'win32yank.exe -o --lf', + ['*'] = 'win32yank.exe -o --lf', + }, + cache_enabled = 0, + } opt.guifont= 'JetBrainsMonoNL NF:h9' -- https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/NoLigatures/Regular/complete/JetBrains%20Mono%20NL%20Regular%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf elseif vim.loop.os_uname().sysname == 'Linux' then opt.guifont= 'JetBrainsMono Nerd Font Mono:h7'