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 --- init.vim | 3 +++ lua/alpha/refactor.lua | 6 +++--- plugin/sets.vim | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/init.vim b/init.vim index 727093d..0384e0e 100644 --- a/init.vim +++ b/init.vim @@ -47,6 +47,9 @@ inoremap ? ?u inoremap $ $u inoremap > >u +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 -- cgit v1.2.3