nvim: fixed toggleterm; added permanently visible terminal

master
Jef Roosens 2022-04-29 21:10:48 +02:00
parent 40a1069990
commit 0284cf1691
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 17 additions and 7 deletions

View File

@ -7,9 +7,19 @@ require("toggleterm").setup {
start_in_insert = false
}
nmap("<leader>rr", ":ToggleTerm<CR>")
nmap("<leader>ry", ":1ToggleTerm<CR>")
nmap("<leader>ru", ":2ToggleTerm<CR>")
nmap("<leader>ri", ":3ToggleTerm<CR>")
nmap("<leader>ro", ":4ToggleTerm<CR>")
nmap("<leader>rp", ":5ToggleTerm<CR>")
local Terminal = require('toggleterm.terminal').Terminal
local always_visible = Terminal:new{
direction = "horizontal",
count = 6
}
function _always_visible_toggle()
always_visible:toggle()
end
nmap("<leader>rr", ":1ToggleTerm<CR>")
nmap("<leader>ry", ":2ToggleTerm<CR>")
nmap("<leader>ru", ":3ToggleTerm<CR>")
nmap("<leader>ri", ":4ToggleTerm<CR>")
nmap("<leader>ro", ":5ToggleTerm<CR>")
nmap("<leader>rp", "<cmd>lua _always_visible_toggle()<CR>")

View File

@ -97,7 +97,7 @@ require('packer').startup(function(use)
-- Toggleable terminals
use {
"akinsho/nvim-toggleterm.lua",
"akinsho/toggleterm.nvim",
config = [[require('config.toggleterm')]]
}