39 lines
1.3 KiB
Lua
39 lines
1.3 KiB
Lua
return {
|
|
"caenrique/buffer-term.nvim",
|
|
config = function()
|
|
local buffer_term = require("buffer-term")
|
|
buffer_term.setup()
|
|
|
|
vim.keymap.set({ "n", "t" }, "<F6>", buffer_term.toggle_last)
|
|
vim.keymap.set({ "n", "t" }, "<F6>0", function()
|
|
buffer_term.toggle("0")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>1", function()
|
|
buffer_term.toggle("1")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>2", function()
|
|
buffer_term.toggle("2")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>3", function()
|
|
buffer_term.toggle("3")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>4", function()
|
|
buffer_term.toggle("4")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>5", function()
|
|
buffer_term.toggle("5")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>6", function()
|
|
buffer_term.toggle("6")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>7", function()
|
|
buffer_term.toggle("7")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>8", function()
|
|
buffer_term.toggle("8")
|
|
end)
|
|
vim.keymap.set({ "n", "t" }, "<F6>9", function()
|
|
buffer_term.toggle("9")
|
|
end)
|
|
end,
|
|
}
|