Any idea why this is not working? #218
-
I am trying to use use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup({
padding = true,
sticky = true,
ignore = nil,
toggler = {
line = '<C-_>',
block = '<C-\\>'
},
opleader = {
line = '<C-_>',
block = '<C-\\>'
},
extra = {
above = nil,
below = nil,
eol = nil
},
mappings = {
basic = true,
extra = true,
extended = false,
},
pre_hook = nil,
post_hook = nil,
})
end However this is not working. Any idea why? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
You can't use same keys for |
Beta Was this translation helpful? Give feedback.
-
I see but then how come use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup({
padding = true,
sticky = true,
ignore = nil,
toggler = {
line = '<C-j>',
block = '<C-k>',
},
opleader = {
line = '<C-_s',
block = '<C-a>',
},
extra = {
above = nil,
below = nil,
eol = nil,
},
mappings = {
basic = true,
extra = true,
extended = false,
},
pre_hook = nil,
post_hook = nil,
})
end Is not working? |
Beta Was this translation helpful? Give feedback.
-
Following works for me though require('Comment').setup({
toggler = {
line = '<C-j>',
block = '<C-k>',
},
opleader = {
line = '<C-s>',
block = '<C-a>',
},
}) |
Beta Was this translation helpful? Give feedback.
-
Working for me now. The problem was that I needed to exist VIM before PackerSync |
Beta Was this translation helpful? Give feedback.
Working for me now. The problem was that I needed to exist VIM before PackerSync
I kept reopening VIM but PackerSync was in the old window