Fixed copy/paste on wsl, added opencode and minuet
This commit is contained in:
9
init.lua
9
init.lua
@@ -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'
|
||||
|
Reference in New Issue
Block a user