From 52b1207c1173b90a87512f036e5d57e5273ff6d6 Mon Sep 17 00:00:00 2001 From: Wilson Soetomo Date: Wed, 30 Jul 2025 15:03:51 -0400 Subject: [PATCH] adding b-changes --- lua/custom/keymaps.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/custom/keymaps.lua b/lua/custom/keymaps.lua index 12a30e47..68eec0c7 100644 --- a/lua/custom/keymaps.lua +++ b/lua/custom/keymaps.lua @@ -38,3 +38,12 @@ end) -- In your keybindings configuration (e.g., lua/config/keymaps.lua or init.lua) vim.keymap.set('n', 'w', 'NvimTreeToggle', { desc = 'Toggle NvimTree' }) + +vim.keymap.set({ 'n', 't' }, 'rr', function() + local chan = vim.b.terminal_job_id + if not chan then + vim.notify('Not in a terminal buffer', vim.log.levels.ERROR) + return + end + vim.api.nvim_chan_send(chan, 'source venv/bin/activate\n') +end, { desc = 'Activating VENV virtual environment (if it exists LOL)' })