Update .vimrc

This commit is contained in:
Tanguy Gérôme 2024-09-16 10:35:33 +03:00
parent 69dbec8716
commit aa100c6b1b
2 changed files with 11 additions and 8 deletions

View file

@ -57,7 +57,7 @@ alias gs='git status'
# less used aliases
wttr()
{
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Nancy}"
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Kontula}"
}
PATH="$PATH:$HOME/.local/bin"

17
.vimrc
View file

@ -46,16 +46,17 @@ let g:UltiSnipsExpandTrigger="<tab>"
" coc
" if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
" let g:coc_global_extensions += ['coc-prettier']
" endif
"
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
let g:coc_global_extensions += ['coc-prettier']
endif
" disabled eslint in favor of xo
" if isdirectory('./node_modules') && isdirectory('./node_modules/eslint')
" let g:coc_global_extensions += ['coc-eslint']
" endif
if isdirectory('./node_modules') && isdirectory('./node_modules/eslint')
let g:coc_global_extensions += ['coc-eslint']
endif
" coc shortcuts
inoremap <silent><expr> <C-y>y coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
nnoremap <silent> gK :call CocAction('doHover')<CR>
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
@ -103,6 +104,7 @@ nnoremap <expr> gb '`[' . strpart(getregtype(), 0, 1) . '`]'
filetype plugin indent on
set conceallevel=0
let g:indentLine_setConceal = 0
" js/ts/...
autocmd Filetype javascript setlocal ts=2 sw=2 expandtab
@ -127,3 +129,4 @@ if has('macunix')
endif
" lua require('init')