Skip to content

Commit

Permalink
add: tab jump on K, javascript coc server
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Feb 14, 2022
1 parent 1c5af43 commit 380625e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let g:NERDTreeGitStatusIndicatorMapCustom = {
" Very spicy pipe
let g:indentLine_char = ''
" K shows docs
nnoremap <silent> K :call <SID>show_documentation()<CR>
nnoremap <silent> K :call CocAction('jumpDefinition', 'drop')<CR>
nmap <silent> gd :call CocAction('jumpDefinition', 'vsplit')<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
Expand All @@ -145,6 +145,8 @@ function! s:show_documentation()
endfunction
" Automatically re-read file if a change was detected outside of vim
set autoread
" Set the default shell to run commands from
set shell=bash
" Bracey stuff
let g:bracey_refresh_on_save = 1
nnoremap m :Bracey<CR>
Expand Down
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ curl -fLo "${HOME:-~}/.config/nvim/init.vim" --create-dirs \
https://raw.githubusercontent.com/Henryws/Venom/master/init.vim
# Install the plugins and CoC stuff
nvim -c ":PlugInstall|qa!"
nvim -c "CocInstall -sync coc-sh coc-java coc-html coc-css coc-omnisharp|q"
nvim -c "CocInstall -sync coc-sh coc-java coc-html coc-css coc-omnisharp coc-tsserver|q"
npm install --save-dev htmlhint
# this will hook into godot (if running, and provide the language server)
echo '{
Expand All @@ -54,6 +54,7 @@ echo '{
"port": 6008
}
}
"coc.preferences.jumpCommand": "tabe"
}
' > "${HOME:-~}"/.config/nvim/coc-settings.json
if command -v paru &>/dev/null; then
Expand Down

0 comments on commit 380625e

Please # to comment.