From 836aa542165ad90179bf3b61c0ad978354469440 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 10 Feb 2023 14:07:44 +0100 Subject: [PATCH] vim added Rustdebug command --- README.md | 1 + home/.config/nvim/init.vim | 5 ++++- home/.config/nvim/noplug.vim | 5 ++++- home/.vimrc | 5 ++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6513df1..406dc48 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,4 @@ target user, some stuff will need to run as root. [ ] add options for help, only local installs, complete installs and so on [ ] add vim shortcut to resize splits [ ] take a look at autoclosing plugins for nvim +[ ] Check if :Rustdebug works with regular vim diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 568d8d7..1726e94 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -162,9 +162,12 @@ nnoremap bw BufferOrderByWindowNumber " :BarbarDisable - very bad command, should never be used " -" packages +" debuging packadd termdebug +" debuggin for rust +command Rustdebug :let termdebugger="rust-gdb" | :Termdebug + color terafox let g:lazygit_floating_window_winblend = 0 " transparency of floating window diff --git a/home/.config/nvim/noplug.vim b/home/.config/nvim/noplug.vim index 96b03f9..635ea6d 100644 --- a/home/.config/nvim/noplug.vim +++ b/home/.config/nvim/noplug.vim @@ -81,5 +81,8 @@ command W :SudaWrite command E :SudaRead " Set completeopt to have a better completion experience" set completeopt=menuone,noinsert,noselect -" packages +" debuging packadd termdebug + +" debuggin for rust +command Rustdebug :let termdebugger="rust-gdb" | :Termdebug diff --git a/home/.vimrc b/home/.vimrc index 6342b16..f98fcb0 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -70,5 +70,8 @@ map % :split command W :w ! sudo tee % " Set completeopt to have a better completion experience" set completeopt=menuone,noinsert,noselect -" packages +" debuging packadd termdebug + +" debuggin for rust +command Rustdebug :let termdebugger="rust-gdb" | :Termdebug