From 9aed284dbea620b7a639a5ab49ec5eff45d49e53 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Wed, 8 Feb 2023 22:54:00 +0100 Subject: [PATCH] [nvim] feat: add mini.pairs --- .config/nvim/lua/plugin/editor.lua | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/plugin/editor.lua b/.config/nvim/lua/plugin/editor.lua index 9c3ca2e..51a04c1 100644 --- a/.config/nvim/lua/plugin/editor.lua +++ b/.config/nvim/lua/plugin/editor.lua @@ -4,18 +4,25 @@ -- Description : Mini.comment plugin config file return { - "echasnovski/mini.comment", - version = "*", - opts = { - mappings = { - comment = "c", + { + "echasnovski/mini.comment", + version = "*", + opts = { + mappings = { + comment = "c", - comment_line = "", + comment_line = "", - text_object = "gc", + text_object = "gc", + }, }, + config = function(_, opts) + require("mini.comment").setup(opts) + end }, - config = function(_, opts) - require("mini.comment").setup(opts) - end, + { + "echasnovski/mini.pairs", + version = "*", + config = function() require("mini.pairs").setup() end, + } }