diff --git a/init.lua b/init.lua index 5f988bce..f5318d28 100644 --- a/init.lua +++ b/init.lua @@ -420,6 +420,7 @@ do -- - va) - [V]isually select [A]round [)]paren -- - yiiq - [Y]ank [I]nside [I]+1 [Q]uote -- - ci' - [C]hange [I]nside [']quote + --FIX: mini.ai does not seem to be working correctly. Conflicts? require('mini.ai').setup { -- NOTE: Avoid conflicts with the built-in incremental selection mappings on Neovim>=0.12 (see `:help treesitter-incremental-selection`) mappings = { @@ -434,6 +435,7 @@ do -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren -- - sd' - [S]urround [D]elete [']quotes -- - sr)' - [S]urround [R]eplace [)] ['] + --FIX: mini.surround does not seem to be working correctly. Conflicts? require('mini.surround').setup() -- Simple and easy statusline. diff --git a/lua/custom/plugins/mini.lua b/lua/custom/plugins/mini.lua index 11a72641..061127a8 100644 --- a/lua/custom/plugins/mini.lua +++ b/lua/custom/plugins/mini.lua @@ -1,33 +1,9 @@ ---FIX: fix/postmerge-20260701: make sure this configuration applies to upstreams version of mini -return { - 'nvim-mini/mini.nvim', - config = function() - -- Better Around/Inside textobjects - -- - -- Examples: - -- - va) - [V]isually select [A]round [)]paren - -- - yinq - [Y]ank [I]nside [N]ext [Q]uote - -- - ci' - [C]hange [I]nside [']quote - require('mini.ai').setup { n_lines = 500 } +require('mini.git').setup() - -- Add/delete/replace surroundings (brackets, quotes, etc.) - -- - -- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren - -- - sd' - [S]urround [D]elete [']quotes - -- - sr)' - [S]urround [R]eplace [)] ['] - require('mini.surround').setup() +vim.keymap.set('n', 'ga', 'Git add -A', { desc = 'Git add all' }) +vim.keymap.set('n', 'gc', 'Git commit', { desc = 'Git commit' }) +vim.keymap.set('n', 'gs', 'Git status', { desc = 'Git status' }) +vim.keymap.set('n', 'gg', 'Git log --graph --oneline --all', { desc = 'Git graph' }) - require('mini.move').setup() - require('mini.git').setup() - - local statusline = require 'mini.statusline' - statusline.setup { use_icons = vim.g.have_nerd_font } - ---@diagnostic disable-next-line: duplicate-set-field - statusline.section_location = function() return '%2l:%-2v' end - - vim.keymap.set('n', 'ga', 'Git add -A', { desc = 'Git add all' }) - vim.keymap.set('n', 'gc', 'Git commit', { desc = 'Git commit' }) - vim.keymap.set('n', 'gs', 'Git status', { desc = 'Git status' }) - vim.keymap.set('n', 'gg', 'Git log --graph --oneline --all', { desc = 'Git graph' }) - end, -} +require('mini.move').setup() +-- usage: Alt = directional keys should move the line in normal mode