77 lines
2.3 KiB
Lua
77 lines
2.3 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,
|
|
\ }
|
|
]])
|
|
elseif vim.fn.has("unix") == 1 then
|
|
-- Native Linux-specific clipboard configuration
|
|
vim.cmd([[
|
|
let g:clipboard = {
|
|
\ 'name': 'LinuxClipboard',
|
|
\ 'copy': {
|
|
\ '+': 'xclip -selection clipboard',
|
|
\ '*': 'xclip -selection primary',
|
|
\ },
|
|
\ 'paste': {
|
|
\ '+': 'xclip -selection clipboard -o',
|
|
\ '*': 'xclip -selection primary -o',
|
|
\ },
|
|
\ 'cache_enabled': 0,
|
|
\ }
|
|
]])
|
|
end
|