nvim: fixed toggleterm; added permanently visible terminal
parent
40a1069990
commit
0284cf1691
|
@ -7,9 +7,19 @@ require("toggleterm").setup {
|
||||||
start_in_insert = false
|
start_in_insert = false
|
||||||
}
|
}
|
||||||
|
|
||||||
nmap("<leader>rr", ":ToggleTerm<CR>")
|
local Terminal = require('toggleterm.terminal').Terminal
|
||||||
nmap("<leader>ry", ":1ToggleTerm<CR>")
|
local always_visible = Terminal:new{
|
||||||
nmap("<leader>ru", ":2ToggleTerm<CR>")
|
direction = "horizontal",
|
||||||
nmap("<leader>ri", ":3ToggleTerm<CR>")
|
count = 6
|
||||||
nmap("<leader>ro", ":4ToggleTerm<CR>")
|
}
|
||||||
nmap("<leader>rp", ":5ToggleTerm<CR>")
|
|
||||||
|
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
|
-- Toggleable terminals
|
||||||
use {
|
use {
|
||||||
"akinsho/nvim-toggleterm.lua",
|
"akinsho/toggleterm.nvim",
|
||||||
config = [[require('config.toggleterm')]]
|
config = [[require('config.toggleterm')]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue