summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-02-08 11:57:29 +0100
committerNaz <ndpm13@ch-naseem.com>2025-02-08 11:57:29 +0100
commitb89df5064660129f9fc1294579c2ea85621818d9 (patch)
tree00c57e0e79e03aa23b53bcf8564976397827062d /lua
parent2d78afef3e98509f5d6d6306117e0fc8b06038e3 (diff)
✨feat: add echasnovski/mini.comment plugin
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/mini-comment.lua17
1 files changed, 17 insertions, 0 deletions
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,
+}