summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/plugins/mini.lua
blob: fe6a3aa8d15559207129de9c24e0c9b812386620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
return {
  {
    "echasnovski/mini.nvim",
    event = "VeryLazy",
    enabled = true,
    config = function()
      require("mini.icons").setup()
      require("mini.move").setup()
      require("mini.ai").setup()
      require("mini.surround").setup()
      require("mini.pairs").setup()
      --
      -- HACK: The Key Commands -> for help run ;h nvim-surround.usage
      --
      --     Old text                    Command         New text
      -- --------------------------------------------------------------------------------
      --     surr*ound_words             ysiw)           (surround_words)
      --     *make strings               ys$"            "make strings"
      --     [delete ar*ound me!]        ds]             delete around me!
      --     remove <b>HTML t*ags</b>    dst             remove HTML tags
      --     'change quot*es'            cs'"            "change quotes"
      --     <b>or tag* types</b>        csth1<CR>       <h1>or tag types</h1>
      --     delete(functi*on calls)     dsf             function calls
      --
    end,
  },
}