nvim: replace a bunch of stuff with mini.nvim

This commit is contained in:
insects 2025-04-14 16:11:50 +02:00
parent e2b9f07292
commit 018768564d
2 changed files with 90 additions and 29 deletions

View file

@ -8,34 +8,9 @@ return {
lazy = false, lazy = false,
opts = { opts = {
bigfiles = { enabled = true }, bigfiles = { enabled = true },
dashboard = {
enabled = true,
sections = {
{ section = "header" },
{ icon = "", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
{ icon = "", title = "Projects", section = "projects", indent = 2, padding = 1 },
{
icon = "",
title = "Git Status",
section = "terminal",
enabled = function()
return Snacks.git.get_root() ~= nil
end,
cmd = "git status --short --branch --renames",
height = 5,
padding = 1,
ttl = 5 * 60,
indent = 3,
},
},
preset = { keys = {} },
},
indent = { enabled = true, animate = { enabled = false } }, indent = { enabled = true, animate = { enabled = false } },
input = { enabled = true }, input = { enabled = true },
lazygit = { enabled = true, configure = true }, lazygit = { enabled = true, configure = true },
picker = { enabled = true },
quickfile = { enabled = true },
statuscolumn = { enabled = true },
}, },
keys = { keys = {
{ {
@ -74,10 +49,6 @@ return {
extensions = { lazy_nvim = true }, extensions = { lazy_nvim = true },
}, },
}, },
{
"m4xshen/autoclose.nvim",
opts = {},
},
{ {
"wsdjeg/rooter.nvim", "wsdjeg/rooter.nvim",
opts = { opts = {

View file

@ -0,0 +1,90 @@
-- mini.nvim configuration
return {
{
-- More text objects (not AI!)
"echasnovski/mini.ai",
opts = {},
},
{
-- Good commenting
"echasnovski/mini.comment",
opts = {},
},
{
-- Surround operations
"echasnovski/mini.surround",
opts = {},
},
{
-- Autopairs
"echasnovski/mini.pairs",
opts = {},
},
{
-- Go forward and back with [ ]
"echasnovski/mini.bracketed",
opts = {},
},
{
-- Faster and better which-key
"echasnovski/mini.clue",
opts = {
triggers = {
{ mode = "n", keys = "<leader>" },
{ mode = "x", keys = "<leader>" },
{ mode = "n", keys = "g" },
{ mode = "x", keys = "g" },
{ mode = "n", keys = "`" },
{ mode = "x", keys = "`" },
{ mode = "n", keys = "'" },
{ mode = "x", keys = "'" },
{ mode = "n", keys = "<C-w>" },
{ mode = "n", keys = "z" },
{ mode = "x", keys = "z" },
},
window = {
delay = 400,
},
},
},
{
-- Label jumping for visible characters
"echasnovski/mini.jump2d",
opts = {},
},
{
-- File icons
"echasnovski/mini.icons",
opts = {},
},
{
-- Tabs
"echasnovski/mini.tabline",
opts = {},
},
{
-- Decent interactive file management
"echasnovski/mini.files",
opts = {},
keys = {
{
"<leader>fi",
function()
require("mini.files").open()
end,
desc = "Edit files interactively",
},
},
},
{
-- Dashboard
"echasnovski/mini.starter",
opts = {},
},
}