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

[BUG] toggleterm changing terminal width strangely with signcolumn = "yes" #582

Open
1 task done
wenjinnn opened this issue May 21, 2024 · 0 comments
Open
1 task done

Comments

@wenjinnn
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When setting hide_numbers = true and have vim.opt.signcolumn = "yes", open some full screen app, it renders beyond the screen, e.g. lazygit
image
and if I press tab to switch to next lazygit window, It will looks like:
image
this happened after I upgrade to nvim 0.10, now I'm setting hide_numbers to false, and add a on_open hook to achieve the same behavior and it work well:

        on_open = function()
          local ol = vim.opt_local
          ol.number = false
          ol.signcolumn = "no"
          ol.relativenumber = false
        end,

Expected Behavior

Work like normal terminal

Steps To Reproduce

  1. Toggleterm with direction horizontal, not sure if other direction have the same issue
  2. Have vim.opt.signcolumn = "yes"
  3. Open toggleterm and run lazygit in terminal

Environment

- OS: NixOS 23.11
- neovim version: 0.10
- Shell: zsh

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant