update
This commit is contained in:
parent
2100726468
commit
3a76bbf0c6
14 changed files with 397 additions and 178 deletions
39
after/plugin/mini-comment-config.lua
Normal file
39
after/plugin/mini-comment-config.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
require('mini.comment').setup {
|
||||
-- Options which control module behavior
|
||||
options = {
|
||||
-- Function to compute custom 'commentstring' (optional)
|
||||
custom_commentstring = function()
|
||||
return require('ts_context_commentstring.internal').calculate_commentstring() or vim.bo.commentstring
|
||||
end,
|
||||
|
||||
-- Whether to ignore blank lines
|
||||
ignore_blank_line = false,
|
||||
|
||||
-- Whether to recognize as comment only lines without indent
|
||||
start_of_line = false,
|
||||
|
||||
-- Whether to ensure single space pad for comment parts
|
||||
pad_comment_parts = true,
|
||||
},
|
||||
|
||||
-- Module mappings. Use `''` (empty string) to disable one.
|
||||
mappings = {
|
||||
-- Toggle comment (like `gcip` - comment inner paragraph) for both
|
||||
-- Normal and Visual modes
|
||||
comment = '++',
|
||||
|
||||
-- Toggle comment on current line
|
||||
comment_line = '++',
|
||||
|
||||
-- Define 'comment' textobject (like `dgc` - delete whole comment block)
|
||||
textobject = '++',
|
||||
},
|
||||
|
||||
-- Hook functions to be executed at certain stage of commenting
|
||||
hooks = {
|
||||
-- Before successful commenting. Does nothing by default.
|
||||
pre = function() end,
|
||||
-- After successful commenting. Does nothing by default.
|
||||
post = function() end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue