From 2dfc4a7d69a8cd44e313b1bea1033e569ef86623 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 2 Nov 2021 23:34:48 +0100 Subject: other improvements, fix tabs, new maps --- lua/alpha/refactor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/alpha/refactor.lua') 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) -- cgit v1.2.3