summaryrefslogtreecommitdiff
path: root/dotfiles/nvim/lua/master/plugins/comment.lua
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-07-20 20:18:30 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-07-20 20:18:30 +0400
commit73e31b79de25298a519671ef8b6c2ab68af9c87e (patch)
treefafbc2e405247cd1c9b1106d6346a5767071e14f /dotfiles/nvim/lua/master/plugins/comment.lua
parentac76d8699e3979353cd82136323e1e0afee4bba2 (diff)
directory layout changed
Diffstat (limited to 'dotfiles/nvim/lua/master/plugins/comment.lua')
-rw-r--r--dotfiles/nvim/lua/master/plugins/comment.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/dotfiles/nvim/lua/master/plugins/comment.lua b/dotfiles/nvim/lua/master/plugins/comment.lua
new file mode 100644
index 0000000..66dcbc5
--- /dev/null
+++ b/dotfiles/nvim/lua/master/plugins/comment.lua
@@ -0,0 +1,28 @@
+require('Comment').setup{
+
+ ---Add a space b/w comment and the line
+ padding = true,
+
+ ---Whether the cursor should stay at its position
+ sticky = true,
+
+ ---Lines to be ignored while (un)comment
+ ignore = nil,
+
+ ---LHS of toggle mappings in NORMAL mode
+ toggler = {
+ ---Line-comment toggle keymap
+ line = 'cc',
+ ---Block-comment toggle keymap
+ block = 'cb',
+ },
+
+ ---LHS of operator-pending mappings in NORMAL and VISUAL mode
+ opleader = {
+ ---Line-comment keymap
+ line = 'cc',
+ ---Block-comment keymap
+ block = 'cb',
+ },
+
+}