Skip to content

Commit 156cd48

Browse files
committed
docs: update documentation with new split_ratio config option
1 parent a1dbba6 commit 156cd48

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
- New `split_ratio` config option to replace `height_ratio` for better handling of both horizontal and vertical splits
12+
13+
### Fixed
14+
- Fixed vertical split behavior when the window position is set to a vertical split command
15+
816
## [0.4.2] - 2025-03-03
917

1018
### Changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ The plugin can be configured by passing a table to the `setup` function. Here's
9595
require("claude-code").setup({
9696
-- Terminal window settings
9797
window = {
98-
height_ratio = 0.3, -- Percentage of screen height for the terminal window
99-
position = "botright", -- Position of the window: "botright", "topleft", etc.
98+
split_ratio = 0.3, -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits)
99+
position = "botright", -- Position of the window: "botright", "topleft", "vertical", "rightbelow vsplit", etc.
100100
enter_insert = true, -- Whether to enter insert mode when opening Claude Code
101101
hide_numbers = true, -- Hide line numbers in the terminal window
102102
hide_signcolumn = true, -- Hide the sign column in the terminal window

doc/claude-code.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ default configuration:
9090
require("claude-code").setup({
9191
-- Terminal window settings
9292
window = {
93-
height_ratio = 0.3, -- Percentage of screen height for the terminal window
94-
position = "botright", -- Position of the window: "botright", "topleft", etc.
93+
split_ratio = 0.3, -- Percentage of screen for the terminal window (height or width)
94+
position = "botright", -- Position of the window: "botright", "topleft", "vertical", "vsplit", etc.
9595
enter_insert = true, -- Whether to enter insert mode when opening Claude Code
9696
hide_numbers = true, -- Hide line numbers in the terminal window
9797
hide_signcolumn = true, -- Hide the sign column in the terminal window

0 commit comments

Comments
 (0)