repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/init.lua
Raw-- A Neovim configuration, again...
--
-- ███ ▄ ▄▀ ██ ███ ▄█ ▄ ▄▀ ██
-- █ █ █ ▄▀ █ █ █ █ ██ █ ▄▀ █ █
-- █ ▀ ▄ █ █ █ ▀▄ █▄▄█ █ ▀ ▄ ██ ██ █ █ ▀▄ █▄▄█
-- █ ▄▀ █ █ █ █ █ █ █ ▄▀ ▐█ █ █ █ █ █ █ █
-- ███ █▄ ▄█ ███ █ ███ ▐ █ █ █ ███ █
-- ▀▀▀ █ █ ██ █
-- ▀ ▀
-- Setup debug mode
vim.g.bugabinga_debug_mode = true
-- start `profiler.nvim` with `NVIM_PROFILE=1 nvim ...`
-- or `NVIM_PROFILE=start nvim ...`
-- then hit <F12> to save profile.
-- inspect profile on https://ui.perfetto.dev
require 'bugabinga.profile'
local start_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
local auto = require 'std.auto'
auto 'measure_startup_time' {
events = 'VimEnter',
description = 'Measure startup time of neovim.',
once = true,
command = function ()
local end_time = vim.uv.hrtime() ---@diagnostic disable-line: undefined-field
local time_elapsed = end_time - start_time
vim.notify( string.format( 'Neovim started in (%d ms).', time_elapsed / 1e6 ),
vim.log.levels.INFO )
end,
}
vim.cmd.colorscheme 'nugu'
require 'patches'
--[[ MY STUFF ]] --
require 'bugabinga.options'
require 'bugabinga.sessions'
require 'bugabinga.treesitter'
require 'bugabinga.bigfile'
require 'bugabinga.editorconfig'
require 'bugabinga.save_actions'
vim.schedule( function ()
require 'bugabinga.in_and_out'
require 'bugabinga.mkdir'
require 'bugabinga.diagnostic'
-- FIXME why does LSP not start, when scheduled?
require 'bugabinga.lsp'
end )
--[[ PLUGINS ]] --
require 'bugabinga.neovim_devel'
require 'bugabinga.file_explorer'
require 'bugabinga.virtual_column'
require 'bugabinga.align'
require 'bugabinga.autotag'
require 'bugabinga.colorizer'
require 'bugabinga.cursorword'
require 'bugabinga.devicons'
require 'bugabinga.diff'
require 'bugabinga.format'
require 'bugabinga.jump2d'
require 'bugabinga.lint'
require 'bugabinga.search_and_replace'
require 'bugabinga.move'
require 'bugabinga.navigation'
require 'bugabinga.notifications'
require 'bugabinga.operators'
require 'bugabinga.specs'
require 'bugabinga.splitjoin'
require 'bugabinga.statusbar'
require 'bugabinga.surround'
require 'bugabinga.textobjects'
require 'bugabinga.key_preview'
require 'bugabinga.patterns'
require 'bugabinga.pairs'
require 'bugabinga.terminal'
require 'bugabinga.incubator'