seperate out mini from lazy.nvim

This commit is contained in:
2025-11-23 00:40:05 +01:00
parent 2b235392c3
commit a8fb7877c8

View File

@@ -1,8 +1,17 @@
---@module 'lazy'
---@type LazySpec
return { {
'nvim-mini/mini.nvim',
config = function()
-- Clone 'mini.nvim' manually in a way that it gets managed by 'mini.deps'
local path_package = vim.fn.stdpath('data') .. '/site/'
local mini_path = path_package .. 'pack/deps/start/mini.nvim'
if not (vim.uv or vim.loop).fs_stat(mini_path) then
vim.cmd('echo "Installing [`mini.nvim`](../doc/mini-nvim.qmd#mini.nvim)" | redraw')
local clone_cmd = {
'git', 'clone', '--filter=blob:none',
'https://github.com/nvim-mini/mini.nvim', mini_path
}
vim.fn.system(clone_cmd)
vim.cmd('packadd mini.nvim | helptags ALL')
vim.cmd('echo "Installed [`mini.nvim`](../doc/mini-nvim.qmd#mini.nvim)" | redraw')
end
require('mini.ai').setup()
require('mini.surround').setup()
require('mini.operators').setup()
@@ -68,5 +77,7 @@ return { {
use_icons = true,
set_vim_settings = true,
})
end
} }
---@module 'lazy'
---@type LazySpec
return {}