add floatingterm
This commit is contained in:
26
lua/plugins/toggleterm.lua
Normal file
26
lua/plugins/toggleterm.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user