.config/nvim/lua/kamu/options.lua aktualisiert
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
in_wsl = os.getenv('WSL_DISTRO_NAME') ~= nil
|
||||
|
||||
-- https://mitchellt.com/2022/05/15/WSL-Neovim-Lua-and-the-Windows-Clipboard.html
|
||||
if in_wsl then
|
||||
vim.g.clipboard = {
|
||||
name = 'wsl clipboard',
|
||||
copy = {
|
||||
["+"] = { "clip.exe" },
|
||||
["*"] = { "clip.exe" }
|
||||
},
|
||||
paste = {
|
||||
["+"] = { 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))' },
|
||||
["*"] = { 'powershell.exe -c [Console]::Out.Write($(Get-Clipboard -Raw).tostring().replace("`r", ""))' } },
|
||||
cache_enabled = true
|
||||
}
|
||||
end
|
||||
|
||||
local options = {
|
||||
autoindent = true,
|
||||
smartindent = true,
|
||||
|
||||
Reference in New Issue
Block a user