summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-06-01 22:43:51 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commitad55a41508c563f308b73fb653331f4c4be7758b (patch)
treee902b142905d26f1041b22a14269840fc5a5fb6f /dot_config/nvim/lua
parentee3565501b9cc72cd1e2095f306768f023a338ec (diff)
feat(nvim): add commenter plugin with mini.nvim
Diffstat (limited to 'dot_config/nvim/lua')
-rw-r--r--dot_config/nvim/lua/plugins/commenter.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/commenter.lua b/dot_config/nvim/lua/plugins/commenter.lua
new file mode 100644
index 0000000..cdc88fe
--- /dev/null
+++ b/dot_config/nvim/lua/plugins/commenter.lua
@@ -0,0 +1,11 @@
+return {
+ 'echasnovski/mini.nvim',
+ version = false,
+ config = function(_, opts)
+ -- I'm not sure why this is requireed. I thought Lazy.nvim didn't require the
+ -- config key if the only line in the function was to call setup().
+ -- However, without this key, this plugin fails to load with the error
+ -- "mini" could not be found
+ require("mini.comment").setup(opts)
+ end,
+}