diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-02 23:34:48 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-02 23:34:48 +0100 |
| commit | 2dfc4a7d69a8cd44e313b1bea1033e569ef86623 (patch) | |
| tree | 271b38dbf6d9e1a6cec6638c1167d1105df83322 /lua/alpha/refactor.lua | |
| parent | eda24d5d148ba29b26ba4ef211cdf8447be09d59 (diff) | |
| download | nvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.tar.gz nvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.zip | |
other improvements, fix tabs, new maps
Diffstat (limited to 'lua/alpha/refactor.lua')
| -rw-r--r-- | lua/alpha/refactor.lua | 6 |
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) |