From 121b8f443dfac2726c3f075c3d1faedc23e303e6 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 28 Dec 2021 17:13:30 +0100 Subject: [PATCH] plugins: Use custom vimspector base dir --- plugins-noroot-nolowendbox.vim | 4 +++- {neosnippets => vimspector-config}/vimspector.json | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename {neosnippets => vimspector-config}/vimspector.json (100%) 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 -- 2.39.5