From f9a758924918223b4ece9fcabb51e039d9ea5b1f Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 11 Feb 2024 02:15:40 +0400 Subject: Lua style neovim config was added --- src/dotfiles/nvim/lua/master/plugins/comment.lua | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/dotfiles/nvim/lua/master/plugins/comment.lua (limited to 'src/dotfiles/nvim/lua/master/plugins/comment.lua') 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', + }, + +} -- cgit v1.2.3