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:
parent
044eedea32
commit
89ea7e9cf2
2 changed files with 3 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
-- automatic callback to invoke 'mini.base16' when colorscheme file is changed
|
||||||
local colorsfile = vim.fn.stdpath("state") .. "/colorscheme.lua"
|
local colorsfile = vim.fn.stdpath("state") .. "/colorscheme.lua"
|
||||||
local function source_colors()
|
local function source_colors()
|
||||||
if vim.fn.filereadable(colorsfile) == 1 then
|
if vim.fn.filereadable(colorsfile) == 1 then
|
||||||
|
@ -33,7 +34,8 @@ require("mini.indentscope").setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
require("mini.map").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.pairs").setup()
|
||||||
require("mini.trailspace").setup()
|
require("mini.trailspace").setup()
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
return {
|
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
|
-- Align tables and other alignable things
|
||||||
{
|
{
|
||||||
"junegunn/vim-easy-align",
|
"junegunn/vim-easy-align",
|
||||||
|
|
Loading…
Reference in a new issue