add floatingterm

This commit is contained in:
2023-02-04 22:50:59 +01:00
parent 25744bdd73
commit af1cfebdbb
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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",
},
},
}