refactor neovim config

This commit is contained in:
jc 2023-12-18 22:36:28 -05:00
commit fc8f483fa7
No known key found for this signature in database
43 changed files with 346 additions and 102 deletions

View file

@ -0,0 +1,31 @@
local Utils = require("juancwu.utils")
if Utils.os.is_linux() then
vim.g.clipboard = {
name = "xclip",
copy = {
['+'] = "xclip -sel clip -i -quiet",
['*'] = "xclip -sel primary -i -quiet",
},
paste = {
['+'] = "xclip -sel clip -o -quiet",
['*'] = "xclip -sel primary -o -quiet",
},
cache_enabled = 1,
}
elseif Utils.os.is_mac() then
vim.opt.clipboard:append { "unnamedplus" }
elseif Utils.os.is_wsl() then
vim.g.clipboard = {
name = "win32yank",
copy = {
['+'] = "win32yank.exe -i --crlf",
['*'] = "win32yank.exe -i --crlf",
},
paste = {
['+'] = "win32yank.exe -o --lf",
['*'] = "win32yank.exe -o --lf",
},
cache_enabled = 0,
}
end