Change width of a horizontal split #653
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
|
Hi all, I feel like I must be missing something extremely obvious, but I can't find anyway to change the trouble diagnostics (default xx) size, when it is a split panel. return {
{
"folke/trouble.nvim",
opts = {
win = {
position = "right",
-- size = 0.5,
wo = {
wrap = true,
linebreak = true,
},
},
},
},This properly sets the position, however adding size anywhere in here, or in the xx keymap as proposed/mentioned here #653 -- Trouble
vim.keymap.set(
"n",
"<leader>xx",
"<cmd>Trouble diagnostics toggle win.type=split win.position=right win.size=0.8<cr>",
{ desc = "Toggle Trouble" }
)I have tried size = {width = ... , height = ...} as in the examples for the preview window with values both between 0 and 1 to indicate percentage of screen, as well as actual line/column numbers. I feel like I must be missing something super obvious, or alternatively I have some other option somewhere interfering. Can you let me know what setting or setup works for you? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got the following:
This one was achieved by:
Question:
how to increase width of right positioned window
Beta Was this translation helpful? Give feedback.
All reactions