Links and config files for Windows
I recommend you use Powershell Core instead of the embedded Powershell solution to run the scripts
Open PowerShell in administrator mode by right-clicking and selecting "Run as administrator"
So put the command:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force;
Use this command to install choco packages from a file
Get-Content chocolatey.txt | ForEach-Object { choco install $_ -y }
Make sure to run the command with administrative privileges.
Source a different path profile
. $env:USERPROFILE\Developer\repos\windows_setup\profile.ps1
Follow the link:
How to Switch from Debian Stable to Testing: A Step-by-Step Guide
Hit Ctrl+,
to acess the settings, then search for eol and set \n
For any new document: Settings -> Preferences -> New Document (left pane) -> New Document (right pane) -> Format (Line ending) -> Windows (CR LF) / Unix (LF) / Macintosh (CR)
And for an already-open document: Edit -> EOL Conversion
WSL supports Wayland, so if you install the Wayland clipboard utility your Neovim installation should work fine
sudo apt install wl-clipboard
or
sudo pacman -S wl-clipboard
And inside the Neovim config:
vim.schedule(function()
opt.clipboard = 'unnamedplus'
end)
If the previous recommendation didn't work try using Win32yank
cd /tmp
wget https://github.com/equalsraf/win32yank/releases/download/v0.1.1/win32yank-x64.zip
unzip win32yank-x64.zip
chmod +x win32yank.exe
sudo cp win32yank.exe /usr/local/bin/
And inside the Neovim config:
vim.schedule(function()
opt.clipboard = 'unnamedplus'
end)
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 = true,
}
end