fix: floating terminal size
This commit is contained in:
parent
d904925237
commit
11aa5558aa
2 changed files with 34 additions and 0 deletions
27
configs/nvterm.lua
Normal file
27
configs/nvterm.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
local M = {
|
||||
terminals = {
|
||||
shell = vim.o.shell,
|
||||
list = {},
|
||||
type_opts = {
|
||||
float = {
|
||||
relative = 'editor',
|
||||
row = 0.2,
|
||||
col = 0.10,
|
||||
width = 0.8,
|
||||
height = 0.5,
|
||||
border = "single",
|
||||
},
|
||||
horizontal = { location = "rightbelow", split_ratio = .3, },
|
||||
vertical = { location = "rightbelow", split_ratio = .5 },
|
||||
}
|
||||
},
|
||||
behavior = {
|
||||
autoclose_on_quit = {
|
||||
enabled = false,
|
||||
confirm = true,
|
||||
},
|
||||
close_on_exit = true,
|
||||
auto_insert = true,
|
||||
},
|
||||
}
|
||||
return M;
|
|
@ -1,4 +1,11 @@
|
|||
local plugins = {
|
||||
{
|
||||
"NvChad/nvterm",
|
||||
config = function()
|
||||
local opts = require("custom.configs.nvterm")
|
||||
require("nvterm").setup(opts)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
|
|
Loading…
Reference in a new issue