From: Stefan Huber Date: Tue, 28 Dec 2021 16:13:30 +0000 (+0100) Subject: plugins: Use custom vimspector base dir X-Git-Url: http://git.sthu.org/?a=commitdiff_plain;ds=sidebyside;h=121b8f443dfac2726c3f075c3d1faedc23e303e6;p=vimconf.git plugins: Use custom vimspector base dir --- diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index 38fbfc4..8482877 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -241,6 +241,7 @@ EOF let g:vimtex_fold_levelmarker = '➜' au FileType c,cpp,obj,java,python packadd! vimspector + let g:vimspector_base_dir = expand('~/.vim/vimspector-config') let g:vimspector_install_gadgets = [ 'debugpy', 'vscode-cpptools' ] "let g:vimspector_enable_mappings = 'VISUAL_STUDIO' @@ -256,6 +257,7 @@ EOF nmap dc VimspectorContinue nmap ds VimspectorStop nmap dr :call VimspectorRestartOrCreateConfig() + "nmap dr :call vimspector#Restart() nmap drr :call vimspector#Reset() nmap dp VimspectorPause nmap db VimspectorToggleBreakpoint @@ -270,6 +272,6 @@ EOF " for visual mode, the visually selected text xmap de VimspectorBalloonEval - au BufNewFile .vimspector.json read ~/.vim/neosnippets/vimspector.json + au BufNewFile .vimspector.json read ~/.vim/vimspector-config/vimspector.json endfunction diff --git a/neosnippets/vimspector.json b/vimspector-config/vimspector.json similarity index 100% rename from neosnippets/vimspector.json rename to vimspector-config/vimspector.json