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

[Feature Request] Terminal mode support #18

Closed
alexmozaidze opened this issue May 31, 2023 · 3 comments
Closed

[Feature Request] Terminal mode support #18

alexmozaidze opened this issue May 31, 2023 · 3 comments

Comments

@alexmozaidze
Copy link

Hide line numbers in Terminal mode.

@alexmozaidze alexmozaidze changed the title Terminal mode support [Feature Request] Terminal mode support May 31, 2023
@sitiom
Copy link
Owner

sitiom commented Jun 1, 2023

I think this is out of scope for this plugin, but you can put this to your config:

vim.api.nvim_create_autocmd("TermOpen", {
  pattern = "*",
  callback = function()
    vim.opt_local.number = false
    vim.opt_local.relativenumber = false
  end,
})

@sitiom sitiom closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2023
@alexmozaidze
Copy link
Author

This works, but it's not ideal. Changing the mode inside terminal buffer has no effect on line numbers. It would be appreciated if you added it into the plugin since it's very useful

@sitiom
Copy link
Owner

sitiom commented Jun 1, 2023

Not sure what you're trying to achieve here. Making the line numbers appear in normal mode on the terminal buffer? That looks like a very specific use case now.

Anyhow, you can also check out https://github.com/akinsho/toggleterm.nvim, which I use (with AstroNvim) and conveniently has the hide_numbers option.

 hide_numbers = true, -- hide the number column in toggleterm buffers

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

2 participants