X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=plugins-noroot-nolowendbox.vim;h=84828779fe72a4a4e4e9c5db739909c4bff129be;hb=df9773e012a0f8a387e37730170766474abfc3ca;hp=f802c9ced50c71524fe22fae4560cdfeb52c711d;hpb=3aa781b69d23148ffd47b6b468f0aeec92dc800e;p=vimconf.git diff --git a/plugins-noroot-nolowendbox.vim b/plugins-noroot-nolowendbox.vim index f802c9c..8482877 100644 --- a/plugins-noroot-nolowendbox.vim +++ b/plugins-noroot-nolowendbox.vim @@ -48,14 +48,13 @@ Plug 'sjl/splice.vim', {'on': 'SpliceInit'} " Costs a second startup time Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'} +Plug 'sheerun/vim-polyglot' + if has('nvim-0.5') Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'} -else - Plug 'sheerun/vim-polyglot' endif - function PluginsNorootNolowendboxConfig() let g:neomake_c_enabled_makers = ['clangtidy', 'clangcheck'] let g:neomake_cpp_enabled_makers = ['clangtidy', 'clangcheck'] @@ -242,11 +241,13 @@ 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' function VimspectorRestartOrCreateConfig() if !filereadable('.vimspector.json') + echo "Missing .vimspector.json, created one." execute 'tabe .vimspector.json' else call vimspector#Restart() @@ -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