1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:29:20 +02:00
parent 75eea0c030
commit ef2e28883d
5576 changed files with 604886 additions and 503 deletions

View File

@ -0,0 +1,24 @@
-- mimic startup option `--clean`
local function clean_startup()
for _, path in ipairs(vim.split(vim.o.runtimepath, ",")) do
if
string.find(path, vim.fn.expand("~/.config/nvim"))
or string.find(path, vim.fn.expand("~/.local/share/nvim/site"))
then
vim.opt.packpath:remove(path)
vim.opt.runtimepath:remove(path)
end
end
end
clean_startup()
local root_dir = vim.fn.fnamemodify(vim.trim(vim.fn.system("git rev-parse --show-toplevel")), ":p"):gsub("/$", "")
package.path = string.format("%s;%s/?.lua;%s/?/init.lua", package.path, root_dir, root_dir)
vim.opt.packpath:prepend(root_dir .. "/.tests/site")
vim.cmd([[
packadd plenary.nvim
]])