Added javascript config

This commit is contained in:
Michael Mandl 2021-01-11 13:18:22 +01:00
parent 6ea51f93a5
commit 5b94fb0c26
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,3 @@
{ {
"coc.preferences.formatOnSaveFiletypes": ["cpp", "markdown", "python", "rust", "toml", "yaml"] "coc.preferences.formatOnSaveFiletypes": ["cpp", "javascript", "typescript", "typescriptreact", "markdown", "python", "rust", "toml", "yaml"]
} }

View file

@ -173,6 +173,7 @@ nnoremap <silent> K :call CocAction('doHover')<CR>
nmap <silent> gd <Plug>(coc-definition) nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gr <Plug>(coc-references) nmap <silent> gr <Plug>(coc-references)
nmap <silent> <leader>rn <Plug>(coc-rename)
" use <tab> for trigger completion and navigate to the next complete item " use <tab> for trigger completion and navigate to the next complete item
function! s:check_back_space() abort function! s:check_back_space() abort