aboutsummaryrefslogtreecommitdiffstats
path: root/init.vim
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2021-09-12 09:53:25 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2021-09-12 09:53:25 +0200
commit10b83cc1dbf6c7562b1bdf26cdfda8876600a17f (patch)
treefac8844bc3c423fc3501c425a8f08b52597e0656 /init.vim
parentb8d7f83d8b902b136ea505bbe21a17cc4958087a (diff)
downloadnvim-conf-10b83cc1dbf6c7562b1bdf26cdfda8876600a17f.tar.gz
nvim-conf-10b83cc1dbf6c7562b1bdf26cdfda8876600a17f.zip
remove alacritty, update configs
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim15
1 files changed, 14 insertions, 1 deletions
diff --git a/init.vim b/init.vim
index b8b44f3..e66c5ef 100644
--- a/init.vim
+++ b/init.vim
@@ -25,12 +25,25 @@ autocmd BufWritePre * %s/\s\+$//e
augroup fmtphp
autocmd!
- autocmd BufWritePre *.php undojoin | Neoformat
+ autocmd BufWritePre *.php undojoin | lua vim.lsp.buf.formatting()
augroup END
filetype plugin indent on
autocmd FileType yaml setl indentkeys-=<:>
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
+nnoremap Y y$
+
+nnoremap n nzzzv
+nnoremap N Nzzzv
+nnoremap J mzJ`z
+
+inoremap , ,<c-g>u
+inoremap . .<c-g>u
+inoremap ! !<c-g>u
+inoremap ? ?<c-g>u
+inoremap $ $<c-g>u
+inoremap > ><c-g>u
+
" Has to be the last line for the .nvimrc per project
set secure