vim.o.hidden = true require("toggleterm").setup { -- open_mapping = "r", direction = "float", insert_mappings = false, start_in_insert = false } local Terminal = require('toggleterm.terminal').Terminal local always_visible = Terminal:new{ direction = "horizontal", count = 6 } function _always_visible_toggle() always_visible:toggle() end nmap("rr", ":1ToggleTerm") nmap("ry", ":2ToggleTerm") nmap("ru", ":3ToggleTerm") nmap("ri", ":4ToggleTerm") nmap("ro", ":5ToggleTerm") nmap("rp", "lua _always_visible_toggle()")