adding b-changes

This commit is contained in:
Wilson Soetomo 2025-07-30 15:03:51 -04:00
parent 5188bb0e10
commit 52b1207c11
1 changed files with 9 additions and 0 deletions

View File

@ -38,3 +38,12 @@ end)
-- In your keybindings configuration (e.g., lua/config/keymaps.lua or init.lua)
vim.keymap.set('n', '<leader>w', '<cmd>NvimTreeToggle<CR>', { desc = 'Toggle NvimTree' })
vim.keymap.set({ 'n', 't' }, '<leader>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)' })