X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e40fee4264d28483903e4e7c8bfa352ae685370e..d447e940707078bcfd9e40f6ca8da2746a4cc058:/nvim/lua/plugins/coding.lua diff --git a/nvim/lua/plugins/coding.lua b/nvim/lua/plugins/coding.lua index 263071d..a2e1538 100644 --- a/nvim/lua/plugins/coding.lua +++ b/nvim/lua/plugins/coding.lua @@ -12,6 +12,7 @@ return { -- auto completion { "hrsh7th/nvim-cmp", + ---@param opts cmp.ConfigSchema opts = function(_, opts) local has_words_before = function() unpack = unpack or table.unpack @@ -50,4 +51,31 @@ return { }) end, }, + + -- auto pairs + { + "echasnovski/mini.pairs", + }, + + -- surround + { + "echasnovski/mini.surround", + keys = { + { "S", "lua MiniSurround.add('visual')", "x" }, + { "yss", "ys_", remap = true }, + }, + opts = { + mappings = { + -- TODO: this is tpope/surround like, but should consider using vim-sandwich mappings + -- see: :h MiniSurround-vim-surround-config + add = "ys", + delete = "ds", + find = "", + find_left = "", + highlight = "", + replace = "cs", + update_n_lines = "", + }, + }, + }, }