diff options
| -rw-r--r-- | init.vim | 3 | ||||
| -rw-r--r-- | lua/alpha/refactor.lua | 6 | ||||
| -rw-r--r-- | plugin/sets.vim | 5 |
3 files changed, 10 insertions, 4 deletions
@@ -47,6 +47,9 @@ inoremap ? ?<c-g>u inoremap $ $<c-g>u inoremap > ><c-g>u +vnoremap < <gv +vnoremap > >gv + lua require("alpha") " Has to be the last line for the .nvimrc per project 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) diff --git a/plugin/sets.vim b/plugin/sets.vim index 5a170a9..0e367ab 100644 --- a/plugin/sets.vim +++ b/plugin/sets.vim @@ -13,7 +13,8 @@ set undodir=~/.config/nvim/undodir set nohlsearch set incsearch set termguicolors -set scrolloff=4 +set scrolloff=8 +set sidescrolloff=8 set noshowmode set clipboard+=unnamedplus set completeopt=menuone,noinsert,noselect @@ -22,6 +23,8 @@ set colorcolumn=80 set splitbelow set splitright set autowrite +set list +set listchars=tab:\ ,trail:- set cmdheight=2 |