Add support for local overrides in lua/local.lua

GUI's like Neovide require system specific settings for font size based
on monitor resolution, pixel density, and scaling. Add support for
loading `lua/local.lua` if it exists to enable overriding the default
for `vim.o.guifont` or similar options.
This commit is contained in:
Kenneth Benzie 2025-07-29 11:38:46 +01:00
parent 1529032ffb
commit 7ff5ca4a6a
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
lazy-lock.json
spell/*.spl
lua/local.lua

View File

@ -6,6 +6,9 @@ if vim.g.neovide then
vim.g.neovide_cursor_animation_length = 0
end
-- load config from lua/local.lua if present
pcall(function() require('local') end)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ 'git', 'clone', '--filter=blob:none',