fix: floating terminal size

This commit is contained in:
Fabio Montefuscolo 2024-03-13 21:51:26 +01:00
parent d904925237
commit 11aa5558aa
Signed by: fabiomontefuscolo
GPG key ID: 7598676DAE19B4EF
2 changed files with 34 additions and 0 deletions

27
configs/nvterm.lua Normal file
View 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;

View file

@ -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",