return { -- amongst your other plugins -- { "akinsho/toggleterm.nvim", version = "*", config = true }, -- or {'akinsho/toggleterm.nvim', version = "*", opts = {--[[ things you want to change go here]] direction = "horiztonal", }, config = function() local toggleterm = require('toggleterm') toggleterm.setup() vim.cmd [[ tnoremap exe v:count1 . "ToggleTerm" " By applying the mappings this way you can pass a count to your " mapping to open a specific window. " For example: 2 will open terminal 2 nnoremap exe v:count1 . "ToggleTerm" inoremap exe v:count1 . "ToggleTerm" ]] end, } }