nvim/init.lua
Kenneth Benzie (Benie) 7ff5ca4a6a 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.
2025-07-29 11:38:46 +01:00

20 lines
599 B
Lua

vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
if vim.g.neovide then
vim.o.guifont = "CaskaydiaCove Nerd Font:h12"
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',
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup('plugins', { change_detection = { enabled = false } })