diff options
Diffstat (limited to 'nvim/.config/nvim/lua/plugins/configs/nvterm.lua')
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/configs/nvterm.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/configs/nvterm.lua b/nvim/.config/nvim/lua/plugins/configs/nvterm.lua new file mode 100644 index 0000000..2c82e14 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/configs/nvterm.lua @@ -0,0 +1,34 @@ +local present, nvterm = pcall(require, "nvterm") + +if not present then + return +end + +require "base46.term" + +local options = { + terminals = { + list = {}, + type_opts = { + float = { + relative = "editor", + row = 0.3, + col = 0.25, + width = 0.5, + height = 0.4, + border = "single", + }, + 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, +} + +options = require("core.utils").load_override(options, "NvChad/nvterm") + +nvterm.setup(options) |
