aboutsummaryrefslogtreecommitdiffstats
path: root/init-old.vim
blob: 841a6859e1b2d03c07af355b6e5e2b93c51c1133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" 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>

" forward and backward search of current word

" format json files
" autocmd BufWritePre *stubs/**/*.json :%!jq

autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('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