From 3892bc93893e8282accd128f0c0990abfee21606 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Wed, 8 Feb 2023 22:53:04 +0100 Subject: [PATCH 1/2] [nvim] cleanup: rename comment.lua to editor.lua the file will host plugins relative to the editor itself, not only comments --- .config/nvim/lua/plugin/{comment.lua => editor.lua} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .config/nvim/lua/plugin/{comment.lua => editor.lua} (100%) diff --git a/.config/nvim/lua/plugin/comment.lua b/.config/nvim/lua/plugin/editor.lua similarity index 100% rename from .config/nvim/lua/plugin/comment.lua rename to .config/nvim/lua/plugin/editor.lua From 9aed284dbea620b7a639a5ab49ec5eff45d49e53 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Wed, 8 Feb 2023 22:54:00 +0100 Subject: [PATCH 2/2] [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, + } }