aboutsummaryrefslogtreecommitdiffstats
path: root/init-old.vim
blob: 3fcdf887a7d7a38a1ede59e3f98f02df94cd9aaa (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
28
29
30
31
32
33
34
35
36
37
38
39
40
" 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

" 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')

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