Files
lazy_config/init.lua
2025-10-15 21:39:11 -04:00

61 lines
1.9 KiB
Lua

-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
local os_info = require("os_info")
-------------------------------------------------------
-- powershell so my shit compiles with zig when i install
-------------------------------------------------------
if os_info.is_windows then
vim.o.shell = "pwsh"
vim.o.shellcmdflag =
"-NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
vim.o.shellredir = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
vim.o.shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode"
vim.o.shellquote = ""
vim.o.shellxquote = ""
end
-------------------------------------------------------
-- colourscheme
-------------------------------------------------------
vim.cmd("colorscheme wildcharm")
vim.api.nvim_set_hl(0, "Normal", { bg = "#18131e" })
-- for boarders
vim.api.nvim_set_hl(0, "VertSplit", {
fg = "#E858F5",
bg = "#1A1A1A",
ctermbg = 0,
ctermfg = 15,
})
-- for menus
vim.api.nvim_set_hl(0, "Pmenu", {
fg = "NONE",
bg = "#1A1A1A",
ctermbg = 0,
ctermfg = 15,
})
-- for git
vim.api.nvim_set_hl(0, "SnacksPickerGitStatusUntracked", { default = false, link = "BlinkCmpMenuSelection" })
-------------------------------------------------------
-- clipboard
-------------------------------------------------------
if vim.fn.has("wsl") == 1 then
-- WSL-specific clipboard configuration
vim.cmd([[
let g:clipboard = {
\ 'name': 'WslClipboard',
\ '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': 0,
\ }
]])
end