From 70127baaff25611deaf1a29d801fc054ad9d2dc1 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Sat, 9 Sep 2023 13:12:20 +0200 Subject: [PATCH] fix: no surrounding spaces for one-line-docstring (#154) --- lua/neogen/templates/google_docstrings.lua | 2 +- lua/neogen/templates/numpydoc.lua | 2 +- lua/neogen/templates/reST.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/neogen/templates/google_docstrings.lua b/lua/neogen/templates/google_docstrings.lua index 8eb25ea..6c6bdad 100644 --- a/lua/neogen/templates/google_docstrings.lua +++ b/lua/neogen/templates/google_docstrings.lua @@ -1,7 +1,7 @@ local i = require("neogen.types.template").item return { - { nil, '""" $1 """', { no_results = true, type = { "class", "func" } } }, + { nil, '"""$1"""', { no_results = true, type = { "class", "func" } } }, { nil, '"""$1', { no_results = true, type = { "file" } } }, { nil, "", { no_results = true, type = { "file" } } }, { nil, "$1", { no_results = true, type = { "file" } } }, diff --git a/lua/neogen/templates/numpydoc.lua b/lua/neogen/templates/numpydoc.lua index bf876dd..4972a4c 100644 --- a/lua/neogen/templates/numpydoc.lua +++ b/lua/neogen/templates/numpydoc.lua @@ -1,7 +1,7 @@ local i = require("neogen.types.template").item return { - { nil, '""" $1 """', { no_results = true, type = { "class", "func" } } }, + { nil, '"""$1"""', { no_results = true, type = { "class", "func" } } }, { nil, '"""$1', { no_results = true, type = { "file" } } }, { nil, "", { no_results = true, type = { "file" } } }, { nil, "$1", { no_results = true, type = { "file" } } }, diff --git a/lua/neogen/templates/reST.lua b/lua/neogen/templates/reST.lua index f7ad144..e1bb146 100644 --- a/lua/neogen/templates/reST.lua +++ b/lua/neogen/templates/reST.lua @@ -1,7 +1,7 @@ local i = require("neogen.types.template").item return { - { nil, '""" $1 """', { no_results = true, type = { "class", "func" } } }, + { nil, '"""$1"""', { no_results = true, type = { "class", "func" } } }, { nil, '"""$1', { no_results = true, type = { "file" } } }, { nil, "", { no_results = true, type = { "file" } } }, { nil, "$1", { no_results = true, type = { "file" } } },