2022-04-27 15:42:28 +00:00
|
|
|
local present, nvterm = pcall(require, "nvterm")
|
|
|
|
|
|
|
|
if not present then
|
2022-07-22 16:00:00 +00:00
|
|
|
return
|
2022-04-27 15:42:28 +00:00
|
|
|
end
|
|
|
|
|
2022-06-14 12:06:27 +00:00
|
|
|
require "base46.term"
|
|
|
|
|
2022-04-27 15:42:28 +00:00
|
|
|
local options = {
|
2022-07-22 16:00:00 +00:00
|
|
|
terminals = {
|
|
|
|
list = {},
|
|
|
|
type_opts = {
|
|
|
|
float = {
|
|
|
|
relative = "editor",
|
|
|
|
row = 0.3,
|
|
|
|
col = 0.25,
|
|
|
|
width = 0.5,
|
|
|
|
height = 0.4,
|
|
|
|
border = "single",
|
2022-04-27 15:42:28 +00:00
|
|
|
},
|
2022-07-22 16:00:00 +00:00
|
|
|
horizontal = { location = "rightbelow", split_ratio = 0.3 },
|
|
|
|
vertical = { location = "rightbelow", split_ratio = 0.5 },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
behavior = {
|
|
|
|
close_on_exit = true,
|
|
|
|
auto_insert = true,
|
|
|
|
},
|
|
|
|
enable_new_mappings = true,
|
2022-04-27 15:42:28 +00:00
|
|
|
}
|
|
|
|
|
2022-05-29 10:37:47 +00:00
|
|
|
options = require("core.utils").load_override(options, "NvChad/nvterm")
|
2022-04-27 15:42:28 +00:00
|
|
|
|
|
|
|
nvterm.setup(options)
|