config_win.example.lua 1000 B

123456789101112131415161718192021222324252627
  1. -- Read the docs: https://www.lunarvim.org/docs/configuration
  2. -- Example configs: https://github.com/LunarVim/starter.lvim
  3. -- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
  4. -- Forum: https://www.reddit.com/r/lunarvim/
  5. -- Discord: https://discord.com/invite/Xb9B4Ny
  6. -- Enable powershell as your default shell
  7. vim.opt.shell = "pwsh.exe"
  8. vim.opt.shellcmdflag =
  9. "-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
  10. vim.cmd [[
  11. let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
  12. let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
  13. set shellquote= shellxquote=
  14. ]]
  15. -- Set a compatible clipboard manager
  16. vim.g.clipboard = {
  17. copy = {
  18. ["+"] = "win32yank.exe -i --crlf",
  19. ["*"] = "win32yank.exe -i --crlf",
  20. },
  21. paste = {
  22. ["+"] = "win32yank.exe -o --lf",
  23. ["*"] = "win32yank.exe -o --lf",
  24. },
  25. }