Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resize REPL window #360

Closed
vikaskumar30 opened this issue Mar 24, 2024 · 1 comment
Closed

How to resize REPL window #360

vikaskumar30 opened this issue Mar 24, 2024 · 1 comment
Labels
fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues

Comments

@vikaskumar30
Copy link

vikaskumar30 commented Mar 24, 2024

How to resize repl window dynamically. I am using the suggested command:

repl_open_cmd = view.split("40%", {
  winfixwidth = false,
  winfixheight = false,
  number = true
})

I have set the following vim keymap for window management:

keymap.set("n","<C-Up>", "resize +2")
keymap.set("n","<C-Down>", "resize -2")
keymap.set("n","<C-Left>", "vertical resize +2")
keymap.set("n","<C-Right>", "vertical resize -2")

But this doesnt work for the REPL window

@hkupty hkupty added the fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues label Mar 31, 2024
@nickeisenberg
Copy link
Contributor

Hey @vikaskumar30, you are just trying to resize the splits after toggling the repl? Does the following fix the problem? This works for me.

vim.keymap.set("n","<c-Up>", ":resize +2 <cr>")
vim.keymap.set("n","<c-Down>", ":resize -2 <cr>")
vim.keymap.set("n","<c-Left>", ":vertical resize +2 <cr>")
vim.keymap.set("n","<c-Right>", ":vertical resize -2 <cr>")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix-docs Documentation needs to be/is being updated/fixed to avoid similar issues
Projects
None yet
Development

No branches or pull requests

3 participants