Fixed copy/paste on wsl, added opencode and minuet

This commit is contained in:
2025-08-11 09:55:50 +02:00
parent 1d563ec9d4
commit f14f03bd88
4 changed files with 63 additions and 0 deletions

View File

@@ -30,6 +30,15 @@ vim.opt.sidescrolloff = 8
vim.opt.mouse = 'a'
vim.opt.autochdir = false
vim.opt.clipboard = 'unnamed,unnamedplus'
in_wsl = os.getenv('WSL_DISTRO_NAME') ~= nil
if in_wsl then
vim.g.clipboard = {
name = 'wsl clipboard',
copy = { ["+"] = { "clip.exe" }, ["*"] = { "clip.exe" } },
paste = { ["+"] = { "win32yank.exe" }, ["*"] = { "win32yank.exe" } },
cache_enabled = true
}
end
vim.opt.number = true
vim.opt.wrap = false
vim.opt.signcolumn = 'yes:2'