nvim/init.lua
Jeremie Fraeys ecb3452195
All checks were successful
Luacheck / luacheck (push) Successful in 11s
StyLua / stylua (push) Successful in 3s
fix: prevent startup flash by setting colorscheme early and deferring oil
2026-02-08 15:53:51 -05:00

34 lines
850 B
Lua
Executable file

-- Disable netrw before anything else loads
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.loaded_netrwSettings = 1
vim.g.loaded_netrwFileHandlers = 1
-- Set colorscheme early to prevent startup flash
vim.cmd('colorscheme monokai')
-- Install package manager
-- https://github.com/folke/lazy.nvim
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', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
vim.cmd('filetype plugin on')
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require('config.lazy')
require('config.autocmds')
require('config.options')
require('config.mappings')
require('config.utils')