init wrapper-module config

This commit is contained in:
Daniel Winkler 2026-01-30 14:22:39 +11:00
commit 91755583fd
46 changed files with 4277 additions and 0 deletions

28
init.lua Normal file
View file

@ -0,0 +1,28 @@
_G.Config = {}
local nix = require('config.nix').init { non_nix_value = true }
Config.isNixCats = nix.is_nix
require('lze').register_handlers(require('nixCatsUtils.lzUtils').for_cat)
local mini_deps = require('mini.deps')
if not Config.isNixCats then
local path_package = vim.fn.stdpath('data') .. '/site/'
local mini_path = path_package .. 'pack/deps/start/mini.nvim'
if not vim.uv.fs_stat(mini_path) then
vim.cmd('echo "Installing `mini.nvim`" | redraw')
local clone_cmd = {
'git', 'clone', '--filter=blob:none',
'https://github.com/echasnovski/mini.nvim', mini_path
}
vim.fn.system(clone_cmd)
vim.cmd('packadd mini.nvim | helptags ALL')
vim.cmd('echo "Installed `mini.nvim`" | redraw')
end
-- Set up 'mini.deps' (customize to your liking)
mini_deps.setup({ path = { package = path_package } })
else
mini_deps.setup()
end