aboutsummaryrefslogtreecommitdiffstats
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
parenteda24d5d148ba29b26ba4ef211cdf8447be09d59 (diff)
downloadnvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.tar.gz
nvim-conf-2dfc4a7d69a8cd44e313b1bea1033e569ef86623.zip
other improvements, fix tabs, new maps
-rw-r--r--init.vim3
-rw-r--r--lua/alpha/refactor.lua6
-rw-r--r--plugin/sets.vim5
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 ? ?<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