Files
dotfiles/.config/nvim/lua/plug_init/mini_init.lua
2025-09-02 03:32:47 +02:00

36 lines
1.6 KiB
Lua

-- require("mini.pairs").setup() --put down parens etc in pairs
require("mini.ai").setup() --selection with textobjects, such as "indside quotes, parens etc"
require("mini.bracketed").setup() -- move to textobjects with brackets
--require("mini.jump2d").setup() -- jump to any point with Enter+ 2 letters in 2d matrix
require("mini.files").setup() -- floating file manager in vim editor style
require("mini.comment").setup() -- block comments etc
-- require("mini.jump").setup() -- extend f F t T to work over multiple lines and be repeated
-- sugar ↓↓↓↓↓↓
require("mini.indentscope").setup() -- show indent scope
require("mini.cursorword").setup() -- highlight identical words
-- complicated ↓↓↓↓↓↓
require("mini.operators").setup()
-- potentially interesting
--require("mini.align").setup({}) -- split lines in multiple sections, align these to rules, look into it more
--require("mini.git").setup({}) -- git shortcuts, but collisions with gitsigns
--require("mini.hipatterns").setup({}) -- highlight keywords and colors
-- not working by default
vim.o.timeoutlen = 500
require("mini.surround").setup()
-- mappings = {
-- add = 'sa', -- Add surrounding in Normal and Visual modes
-- delete = 'sd', -- Delete surrounding
-- find = 'sf', -- Find surrounding (to the right)
-- find_left = 'sF', -- Find surrounding (to the left)
-- highlight = 'sh', -- Highlight surrounding
-- replace = 'sr', -- Replace surrounding
-- update_n_lines = 'sn', -- Update `n_lines`
--
-- suffix_last = 'l', -- Suffix to search with "prev" method
-- suffix_next = 'n', -- Suffix to search with "next" method
-- },