Skip to content

Commit 64422b7

Browse files
authored
refactor: remove panel horizontal and vertical positions as they have no effect
1 parent 14bf786 commit 64422b7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ require('copilot').setup({
117117
open = "<M-CR>"
118118
},
119119
layout = {
120-
position = "bottom", -- | top | left | right | horizontal | vertical
120+
position = "bottom", -- | top | left | right | bottom |
121121
ratio = 0.4
122122
},
123123
},

doc/copilot.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Default configuration ~
118118
open = "<M-CR>"
119119
},
120120
layout = {
121-
position = "bottom", -- | top | left | right | horizontal | vertical
121+
position = "bottom", -- | top | left | right | bottom |
122122
ratio = 0.4
123123
},
124124
},

lua/copilot/panel/init.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,6 @@ function panel:ensure_winid()
320320
right = { cmd_prefix = "vertical botright ", winsize_fn = get_width },
321321
bottom = { cmd_prefix = "botright ", winsize_fn = get_height },
322322
left = { cmd_prefix = "vertical topleft ", winsize_fn = get_width },
323-
horizontal = { cmd_prefix = "horizontal ", winsize_fn = get_height },
324-
vertical = { cmd_prefix = "vertical ", winsize_fn = get_width },
325323
}
326324

327325
local split_info = split_map[position]

0 commit comments

Comments
 (0)