(python, js, c) Add support for multiple cursor
This commit is contained in:
@@ -128,10 +128,10 @@ return {
|
|||||||
doxygen = {
|
doxygen = {
|
||||||
{ nil, "/* */", { no_results = true } },
|
{ nil, "/* */", { no_results = true } },
|
||||||
{ nil, "/**" },
|
{ nil, "/**" },
|
||||||
{ nil, " * @brief " },
|
{ nil, " * @brief $1" },
|
||||||
{ nil, " *" },
|
{ nil, " *" },
|
||||||
{ "parameters", " * @param[in] %s " },
|
{ "parameters", " * @param[in] %s $1" },
|
||||||
{ "return_statement", " * @returns " },
|
{ "return_statement", " * @returns $1" },
|
||||||
{ nil, " */" },
|
{ nil, " */" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ return {
|
|||||||
use_default_comment = false,
|
use_default_comment = false,
|
||||||
|
|
||||||
jsdoc = {
|
jsdoc = {
|
||||||
{ nil, "/* */", { no_results = true } },
|
{ nil, "/* $1 */", { no_results = true } },
|
||||||
{ nil, "/**" },
|
{ nil, "/**" },
|
||||||
{ "class_tag", " * @classdesc", { before_first_item = { " * ", " * @class" }, type = { "class" } } },
|
{ "class_tag", " * @classdesc $1", { before_first_item = { " * ", " * @class" }, type = { "class" } } },
|
||||||
{ "parameters", " * @param {any} %s " },
|
{ "parameters", " * @param {any} %s $1" },
|
||||||
{ "return_statement", " * @returns {any} " },
|
{ "return_statement", " * @returns {$1|any}" },
|
||||||
{ nil, " */" },
|
{ nil, " */" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -109,19 +109,19 @@ return {
|
|||||||
append = { position = "after", child_name = "block" }, -- optional: where to append the text (default_generator)
|
append = { position = "after", child_name = "block" }, -- optional: where to append the text (default_generator)
|
||||||
use_default_comment = false, -- If you want to prefix the template with the default comment for the language, e.g for python: # (default_generator)
|
use_default_comment = false, -- If you want to prefix the template with the default comment for the language, e.g for python: # (default_generator)
|
||||||
google_docstrings = {
|
google_docstrings = {
|
||||||
{ nil, '"""' },
|
{ nil, '"""$1' },
|
||||||
{ nil, '""" """', { no_results = true } },
|
{ nil, '""" $1 """', { no_results = true } },
|
||||||
{ "parameters", "\t%s: ", { before_first_item = { "", "Args:" } } },
|
{ "parameters", "\t%s: $1", { before_first_item = { "", "Args:" } } },
|
||||||
{ "attributes", "\t%s: ", { before_first_item = { "", "Attributes: " } } },
|
{ "attributes", "\t%s: $1", { before_first_item = { "", "Attributes: " } } },
|
||||||
{ "return_statement", "", { before_first_item = { "", "Returns: " } } },
|
{ "return_statement", "", { before_first_item = { "", "Returns: " } } },
|
||||||
{ nil, "" },
|
{ nil, "" },
|
||||||
{ nil, '"""' },
|
{ nil, '"""' },
|
||||||
},
|
},
|
||||||
numpydoc = {
|
numpydoc = {
|
||||||
{ nil, '"""' },
|
{ nil, '"""$1' },
|
||||||
{ nil, '""" """', { no_results = true } },
|
{ nil, '""" $1 """', { no_results = true } },
|
||||||
{ "parameters", "%s: ", { before_first_item = { "", "Parameters", "----------" } } },
|
{ "parameters", "%s: $1", { before_first_item = { "", "Parameters", "----------" } } },
|
||||||
{ "attributes", "%s: ", { before_first_item = { "", "Attributes", "----------" } } },
|
{ "attributes", "%s: $1", { before_first_item = { "", "Attributes", "----------" } } },
|
||||||
{ "return_statement", "", { before_first_item = { "", "Returns", "-------" } } },
|
{ "return_statement", "", { before_first_item = { "", "Returns", "-------" } } },
|
||||||
{ nil, "" },
|
{ nil, "" },
|
||||||
{ nil, '"""' },
|
{ nil, '"""' },
|
||||||
|
|||||||
Reference in New Issue
Block a user