Files
dotfiles/.config/nvim/init.lua
2025-07-12 14:31:23 +03:00

27 lines
817 B
Lua

require "utils" -- global functions here
require "options"
require "autocmds"
vim.schedule_wrap(require) "mappings" -- Mappings hog startup time.
-- Stop loading if opening an encrypted file
for _, arg in ipairs(vim.v.argv) do
local ext = arg:sub(-4);
if ext == ".gpg" or ext == ".asc" then
require "gpg"
return
end
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)
-- Dynamically merge lua/plugins{,/*}.lua to the main plugin spec
require("lazy").setup("plugins", {
defaults = { lazy = true },
change_detection = { notify = false },
ui = { border = vim.g.border }
})