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:
parent
1529032ffb
commit
7ff5ca4a6a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
lazy-lock.json
|
lazy-lock.json
|
||||||
spell/*.spl
|
spell/*.spl
|
||||||
|
lua/local.lua
|
||||||
|
3
init.lua
3
init.lua
@ -6,6 +6,9 @@ if vim.g.neovide then
|
|||||||
vim.g.neovide_cursor_animation_length = 0
|
vim.g.neovide_cursor_animation_length = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- load config from lua/local.lua if present
|
||||||
|
pcall(function() require('local') end)
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({ 'git', 'clone', '--filter=blob:none',
|
vim.fn.system({ 'git', 'clone', '--filter=blob:none',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user