nvim: plugins: Switch to Comment.nvim from commentary.vim
This commit is contained in:
parent
e743090e85
commit
936e6149de
2 changed files with 20 additions and 1 deletions
19
nvim/.config/nvim/after/plugin/comment.lua
Normal file
19
nvim/.config/nvim/after/plugin/comment.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
require('Comment').setup{
|
||||||
|
padding = true,
|
||||||
|
ignore = nil,
|
||||||
|
mappings = {
|
||||||
|
basic = true,
|
||||||
|
extra = true,
|
||||||
|
extended = false,
|
||||||
|
},
|
||||||
|
toggler = {
|
||||||
|
line = 'gcc',
|
||||||
|
block = 'gbc',
|
||||||
|
},
|
||||||
|
opleader = {
|
||||||
|
line = 'gc',
|
||||||
|
block = 'gb',
|
||||||
|
},
|
||||||
|
pre_hook = nil,
|
||||||
|
post_hook = nil,
|
||||||
|
}
|
|
@ -57,9 +57,9 @@ local init = function ()
|
||||||
'kana/vim-textobj-entire',
|
'kana/vim-textobj-entire',
|
||||||
'idbrii/textobj-word-column.vim',
|
'idbrii/textobj-word-column.vim',
|
||||||
}
|
}
|
||||||
|
use 'numToStr/Comment.nvim'
|
||||||
-- Tim pope essentials
|
-- Tim pope essentials
|
||||||
use {
|
use {
|
||||||
'tpope/vim-commentary',
|
|
||||||
'tpope/vim-repeat',
|
'tpope/vim-repeat',
|
||||||
'tpope/vim-sleuth'
|
'tpope/vim-sleuth'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue