From 380625e2201c33f0f5e7e1679d8028e5af67c9be Mon Sep 17 00:00:00 2001 From: The TwilightBlood Date: Sun, 13 Feb 2022 18:31:16 -0600 Subject: [PATCH] add: tab jump on K, javascript coc server --- init.vim | 4 +++- install.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index b72edc8..ba3792a 100644 --- a/init.vim +++ b/init.vim @@ -132,7 +132,7 @@ let g:NERDTreeGitStatusIndicatorMapCustom = { " Very spicy pipe let g:indentLine_char = '│' " K shows docs -nnoremap K :call show_documentation() +nnoremap K :call CocAction('jumpDefinition', 'drop') nmap gd :call CocAction('jumpDefinition', 'vsplit') function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) @@ -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 diff --git a/install.sh b/install.sh index 71dfee3..5ee558d 100755 --- a/install.sh +++ b/install.sh @@ -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 '{ @@ -54,6 +54,7 @@ echo '{ "port": 6008 } } + "coc.preferences.jumpCommand": "tabe" } ' > "${HOME:-~}"/.config/nvim/coc-settings.json if command -v paru &>/dev/null; then