nvim: Switch to mini operators plugin

Removed vim-exchange which, while an amazing functionality, is also
exactly replicated in mini.nvim (along with even more operators).

Uses slightly different mapping - not `cx<movement>` anymore but
`gx<movement>`. But this actually makes sense and fits in well with
my other g-prefixed operators (`gc` for comment and `ga` for align).

It is also the prefix for the other additional operators supplied
by mini.operators: `gs` for sorting text, `gm` for multiplying,
`gr` for replacing, `g=` for evaluating.
This commit is contained in:
Marty Oehme 2024-02-10 14:07:07 +01:00
parent 044eedea32
commit 89ea7e9cf2
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 3 additions and 6 deletions

View file

@ -1,3 +1,4 @@
-- automatic callback to invoke 'mini.base16' when colorscheme file is changed
local colorsfile = vim.fn.stdpath("state") .. "/colorscheme.lua"
local function source_colors()
if vim.fn.filereadable(colorsfile) == 1 then
@ -33,7 +34,8 @@ require("mini.indentscope").setup({
})
require("mini.map").setup()
require("mini.move").setup() -- has not hit stable yet
require("mini.move").setup()
require("mini.operators").setup()
require("mini.pairs").setup()
require("mini.trailspace").setup()

View file

@ -1,9 +1,4 @@
return {
-- adds exchange operator with cx. common use: cxiw . on 2 words to switch
{
"tommcdo/vim-exchange",
event = "InsertEnter",
},
-- Align tables and other alignable things
{
"junegunn/vim-easy-align",