diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
commit | c419b97b5cc61127ca2b7f9839a588c2ee3e7353 (patch) | |
tree | 623e75923db712e700a447fbb48c0f7105836f8d /config/nvim/lua/master/plugins/comment.lua | |
parent | 395efb9df45b2000ef6aa11d2c9b7b1904b8c586 (diff) |
directory name changed from dotfiles to config
Diffstat (limited to 'config/nvim/lua/master/plugins/comment.lua')
-rw-r--r-- | config/nvim/lua/master/plugins/comment.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/nvim/lua/master/plugins/comment.lua b/config/nvim/lua/master/plugins/comment.lua new file mode 100644 index 0000000..66dcbc5 --- /dev/null +++ b/config/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', + }, + +} |