diff --git a/README.md b/README.md index eafabde..73242fe 100644 --- a/README.md +++ b/README.md @@ -425,10 +425,10 @@ The plugin also provides `:Jdiff`, `:Jvdiff`, and `:Jhdiff` commands for diffing -- If cursor column is being reset to 0 when refreshing commands, try increasing this value -- This delay allows the terminal emulator to complete rendering before restoring cursor position cursor_render_delay = 10, - + -- Configure terminal window window = { - type = "hsplit", -- Type of window the terminal is displayed in + type = "hsplit", -- Type of window the terminal is displayed in (hsplit/vsplit/floating/tab) split_size = 0.5, -- Size % of the split window, either height (hsplit) or width (vsplit) (between 0.1 and 1.0) floating_width = 0.99, -- Width % of the floating window (between 0.1 and 1.0) floating_height = 0.95, -- Height % of the floating window (between 0.1 and 1.0) diff --git a/lua/jj/ui/terminal.lua b/lua/jj/ui/terminal.lua index 11fbb42..1489014 100644 --- a/lua/jj/ui/terminal.lua +++ b/lua/jj/ui/terminal.lua @@ -3,7 +3,7 @@ local M = {} --- Terminal configuration --- @class jj.ui.terminal.opts ---- @field cursor_render_delay integer The delay in ms when cursor rerendering the terminal state (default: 10ms). If you're loosing the column of the cursor try adding more delay. I currently did not find a better way to do so due to async handling of the ouptut in the terminal +--- @field cursor_render_delay? integer The delay in ms when cursor rerendering the terminal state (default: 10ms). If you're loosing the column of the cursor try adding more delay. I currently did not find a better way to do so due to async handling of the ouptut in the terminal --- @field window? jj.terminal.window Options for the window used --- --- @class jj.terminal.window