diff --git a/configs/nvterm.lua b/configs/nvterm.lua new file mode 100644 index 0000000..e410dd8 --- /dev/null +++ b/configs/nvterm.lua @@ -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; diff --git a/plugins.lua b/plugins.lua index 73a6ab2..e664cc0 100644 --- a/plugins.lua +++ b/plugins.lua @@ -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",