diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-02-09 17:53:48 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-02-10 07:31:32 +0100 |
| commit | 77f5dd9693576af7fde80bdc99700f21eff01d6b (patch) | |
| tree | ebb4a64a4137c27b5771af8a95944b9dee92c8f5 /init.vim | |
| parent | cd15d17a96390879c90e95ad90e0f75629e3eed7 (diff) | |
| download | nvim-conf-77f5dd9693576af7fde80bdc99700f21eff01d6b.tar.gz nvim-conf-77f5dd9693576af7fde80bdc99700f21eff01d6b.zip | |
WIP moving to all lua and new structure
Diffstat (limited to 'init.vim')
| -rw-r--r-- | init.vim | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/init.vim b/init.vim deleted file mode 100644 index 01ca079..0000000 --- a/init.vim +++ /dev/null @@ -1,73 +0,0 @@ -" 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 -nnoremap * /\<<C-R>=expand('<cword>')<CR>\><CR> -nnoremap # ?\<<C-R>=expand('<cword>')<CR>\><CR> - -vnoremap <leader>p "_dP - -" 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') - -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 - -vnoremap < <gv -vnoremap > >gv - -" disable vim-go K binding -let g:go_doc_keywordprg_enabled = 0 - -lua require('plugins') -lua require("alpha") - -" quick duplication of files -nnoremap <expr> <leader>dp ":saveas " . expand('%') - -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 |