From b89df5064660129f9fc1294579c2ea85621818d9 Mon Sep 17 00:00:00 2001 From: Naz Date: Sat, 8 Feb 2025 11:57:29 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20add=20echasnovski/mini.comment=20plugi?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/plugins/mini-comment.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/plugins/mini-comment.lua (limited to 'lua') diff --git a/lua/plugins/mini-comment.lua b/lua/plugins/mini-comment.lua new file mode 100644 index 0000000..173394e --- /dev/null +++ b/lua/plugins/mini-comment.lua @@ -0,0 +1,17 @@ +return { + "echasnovski/mini.comment", + version = "*", + config = function() + require("mini.comment").setup({ + options = { + custom_commentstring = function() + local fname = vim.api.nvim_buf_get_name(0) + if fname:match("%.sql$") then + return "--%s" + end + return nil + end, + }, + }) + end, +} -- cgit v1.2.3