aboutsummaryrefslogtreecommitdiffstats
path: root/init-old.vim
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-02-09 17:53:48 +0100
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-02-10 07:31:32 +0100
commit77f5dd9693576af7fde80bdc99700f21eff01d6b (patch)
treeebb4a64a4137c27b5771af8a95944b9dee92c8f5 /init-old.vim
parentcd15d17a96390879c90e95ad90e0f75629e3eed7 (diff)
downloadnvim-conf-77f5dd9693576af7fde80bdc99700f21eff01d6b.tar.gz
nvim-conf-77f5dd9693576af7fde80bdc99700f21eff01d6b.zip
WIP moving to all lua and new structure
Diffstat (limited to 'init-old.vim')
-rw-r--r--init-old.vim51
1 files changed, 51 insertions, 0 deletions
diff --git a/init-old.vim b/init-old.vim
new file mode 100644
index 0000000..fcbaeab
--- /dev/null
+++ b/init-old.vim
@@ -0,0 +1,51 @@
+" Allows to have a .nvimrc per project folder
+set exrc
+
+syntax enable
+
+let mapleader = ' '
+
+inoremap <C-c> <esc>
+
+nnoremap <Leader><CR> :so ~/.config/nvim/init.vim<CR>
+
+let g:vimwiki_list = [{'path': '~/vimwiki/',
+ \ 'syntax': 'markdown', 'ext': '.md'}]
+
+let g:gitgutter_map_keys = 0
+
+" forward and backward search of current word
+
+" remove whitespaces
+autocmd BufWritePre * :%s/\s\+$//e
+
+" format json files
+autocmd BufWritePre *stubs/**/*.json :%!jq
+
+" augroup fmtphp
+" autocmd!
+" autocmd BufWritePre filetype 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
+autocmd FileType cucumber setl indentkeys-=<:>
+autocmd FileType cucumber setlocal ts=2 sts=2 sw=2 expandtab
+
+autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('alpha')
+
+" disable vim-go K binding
+let g:go_doc_keywordprg_enabled = 0
+
+lua require("alpha")
+
+" quick duplication of files
+
+let g:laravel_artisan = 'sail artisan'
+let test#php#pest#executable = 'sail debug test'
+
+let $NO_TTY = 1
+
+" Has to be the last line for the .nvimrc per project
+set secure