nvim: fixed toggleterm; added permanently visible terminal
parent
40a1069990
commit
0284cf1691
|
@ -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>")
|
||||
|
|
|
@ -97,7 +97,7 @@ require('packer').startup(function(use)
|
|||
|
||||
-- Toggleable terminals
|
||||
use {
|
||||
"akinsho/nvim-toggleterm.lua",
|
||||
"akinsho/toggleterm.nvim",
|
||||
config = [[require('config.toggleterm')]]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue