lazyvim/lua/plugins/toggleterm.lua
2023-02-04 22:50:59 +01:00

27 lines
517 B
Lua

return {
"akinsho/toggleterm.nvim",
config = function()
require("toggleterm").setup({
shading_factor = 2,
open_mapping = [[<C-T>]],
insert_mapping = true,
terminal_mapping = true,
direction = "float",
float_opts = {
border = "curved",
highlights = {
border = "Normal",
background = "Normal",
},
},
})
end,
keys = {
{
"<leader>t",
"<cmd>ToggleTerm<CR>",
desc = "Open a terminal",
},
},
}