aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2021-11-02 23:34:48 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2021-11-02 23:34:48 +0100
commit2dfc4a7d69a8cd44e313b1bea1033e569ef86623 (patch)
tree271b38dbf6d9e1a6cec6638c1167d1105df83322 /lua/alpha
parenteda24d5d148ba29b26ba4ef211cdf8447be09d59 (diff)
downloadnvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.tar.gz
nvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.zip
other improvements, fix tabs, new maps
Diffstat (limited to 'lua/alpha')
-rw-r--r--lua/alpha/refactor.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/alpha/refactor.lua b/lua/alpha/refactor.lua
index 1d89fad..d583e59 100644
--- a/lua/alpha/refactor.lua
+++ b/lua/alpha/refactor.lua
@@ -134,11 +134,11 @@ M.setter_getter = function()
table.insert(insert, " * @return self")
table.insert(insert, " */")
end
- table.insert(insert, string.format("\tpublic function set%s(%s %s): self", firstToUpper(variable), varType, p.property_element))
+ table.insert(insert, string.format(" public function set%s(%s %s): self", firstToUpper(variable), varType, p.property_element))
table.insert(insert, " {")
- table.insert(insert, string.format("\t\t$this->%s = %s;", variable, p.property_element))
+ table.insert(insert, string.format(" $this->%s = %s;", variable, p.property_element))
table.insert(insert, "")
- table.insert(insert, string.format("\t\treturn $this;"))
+ table.insert(insert, string.format(" return $this;"))
table.insert(insert, " }")
vim.api.nvim_buf_set_lines(bufnr, classEnd, classEnd, false, insert)