aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzbirenbaum <zacharyobirenbaum@gmail.com>2022-04-22 00:44:31 -0400
committerzbirenbaum <zacharyobirenbaum@gmail.com>2022-04-22 00:44:31 -0400
commit80d634bcae6f095849ae12b733dfe8d6dc5995e5 (patch)
tree5224438fa6e46bf2564084a3b132216c4552554d
parentinitial update (diff)
add README.md
-rw-r--r--README.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..947c035
--- /dev/null
+++ b/README.md
@@ -0,0 +1,51 @@
+# NvChad Official Terminal Plugin
+
+## Setup:
+
+### Installation:
+
+Simply install the plugin with packer as you would for any other:
+
+```
+use {
+ "NvChad/chadterm",
+ config = function ()
+ require("chadterm").setup()
+ end,
+}
+```
+
+### Configuration:
+Pass a table of configuration options to the plugin's `.setup()` function above.
+A sample configuration table with the default options is shown below:
+
+```lua
+require("chadterm").setup({
+ 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 = .3, },
+ vertical = { location = "rightbelow", split_ratio = .5 },
+ }
+ },
+ behavior = {
+ close_on_exit = true,
+ auto_insert = true,
+ },
+ mappings = {
+ toggle = {
+ { '<A-i>', function () terminal.new_or_toggle('float') end },
+ { '<A-s>', function () terminal.new_or_toggle('horizontal') end },
+ { '<A-v>', function () terminal.new_or_toggle('vertical') end },
+ }
+ }
+})
+```