summaryrefslogtreecommitdiff
path: root/src/dotfiles/nvim/lua/master/plugins/comment.lua
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-02-11 02:15:40 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-02-11 02:15:40 +0400
commitf9a758924918223b4ece9fcabb51e039d9ea5b1f (patch)
tree08a62a46a7c39ef3b007f04932124f424ea94d80 /src/dotfiles/nvim/lua/master/plugins/comment.lua
parent49637d9c56b604524685f697a517a4889c59108a (diff)
Lua style neovim config was added
Diffstat (limited to 'src/dotfiles/nvim/lua/master/plugins/comment.lua')
-rw-r--r--src/dotfiles/nvim/lua/master/plugins/comment.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/dotfiles/nvim/lua/master/plugins/comment.lua b/src/dotfiles/nvim/lua/master/plugins/comment.lua
new file mode 100644
index 0000000..66dcbc5
--- /dev/null
+++ b/src/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',
+ },
+
+}