From 94fdcda5ef8110a585d00e99f62ebdee26de0281 Mon Sep 17 00:00:00 2001 From: doylet Date: Tue, 9 Apr 2024 21:27:37 +1000 Subject: [PATCH] Fix build.bat execution in nvim, echo executed msys command --- Internal/os_nvim_init.vim | 22 +++++++++++----------- Win/Scripts/msys2_env.bat | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Internal/os_nvim_init.vim b/Internal/os_nvim_init.vim index 4fafb23..f48fe83 100644 --- a/Internal/os_nvim_init.vim +++ b/Internal/os_nvim_init.vim @@ -1,4 +1,4 @@ -" Plugins ========================================================================================== +" Plugins ////////////////////////////////////////////////////////////////////////////////////////// call plug#begin(stdpath('config') . '/plugged') " nerdtree provides a file tree explorer " vim-dispatch allows running async jobs in vim (i.e. builds in the background) @@ -42,7 +42,7 @@ call plug#begin(stdpath('config') . '/plugged') " lsp-zero end call plug#end() -" Lua Setup ======================================================================================== +" Lua Setup //////////////////////////////////////////////////////////////////////////////////////// lua <', '(leap-forward-to)') @@ -63,7 +63,7 @@ lua <', '', {noremap = true}) @@ -122,7 +122,7 @@ lua <", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) @@ -169,7 +169,7 @@ lua <", function() harpoon:list():prev() end) vim.keymap.set("n", "", function() harpoon:list():next() end) - -- Treesitter ==================================================================================== + -- Treesitter //////////////////////////////////////////////////////////////////////////////////// -- TODO: 2022-06-19 Treesitter is too slow on large C++ files -- require('nvim-treesitter.configs').setup { -- ensure_installed = { "c", "cpp" }, -- A list of parser names, or "all" @@ -193,7 +193,7 @@ lua < :silent! let &guifont = substitute( @@ -328,7 +328,7 @@ nnoremap RemedyBGStopDebugging nnoremap RemedyBGAddBreakpointAtFile nnoremap RemedyBGRunToCursor -" General Key Bindings ============================================================================= +" General Key Bindings ///////////////////////////////////////////////////////////////////////////// " FZF Bindings nnoremap h FzfLua oldfiles nnoremap f FzfLua files diff --git a/Win/Scripts/msys2_env.bat b/Win/Scripts/msys2_env.bat index f6bd88f..2bb3a61 100644 --- a/Win/Scripts/msys2_env.bat +++ b/Win/Scripts/msys2_env.bat @@ -24,4 +24,5 @@ goto :eof set msys_env=%~1 for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b +echo [SCRIPT] Executing '%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"' %devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"