Files
neovim-config/lua/config/options.lua
T
thalladaandClaude Opus 5 4d942a5368 Modernize deprecated Neovim APIs
vim.loop -> vim.uv and vim.highlight.range -> vim.hl.range. Also drop the
completeopt comment referring to nvim-cmp, which blink.cmp replaced.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 12:27:20 -04:00

38 lines
1.0 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 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
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