39 lines
1.1 KiB
Lua
39 lines
1.1 KiB
Lua
-- Options are automatically loaded before lazy.nvim startup
|
||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||
-- Add any additional options here
|
||
|
||
if vim.g.neovide then
|
||
-- Variable font looks too bold on windows
|
||
vim.opt.guifont = "Berkeley Mono:h10.5:#e-subpixelantialias"
|
||
vim.opt.linespace = 1
|
||
else
|
||
vim.opt.guifont = "Berkeley Mono Variable:h13"
|
||
end
|
||
|
||
-- idk if it does anything cause I have to set it in the nvim-cmp settings too
|
||
vim.opt.completeopt = "menu,menuone,noinsert,noselect"
|
||
|
||
-- Window decorations
|
||
vim.opt.title = true
|
||
vim.opt.titlestring = "%{substitute(getcwd(),$HOME,'~','')} - Neovim"
|
||
|
||
vim.opt.fillchars:append({ diff = "╱" })
|
||
|
||
vim.opt.mousescroll = "ver:6,hor:6" -- better mouse scroll in hidpi mode
|
||
|
||
-- WSL2 clipboard support via win32yank
|
||
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
|