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

Allow to show signcolumn on top of numbers column #4515

Closed
sheerun opened this issue Jun 8, 2019 · 8 comments · Fixed by neovim/neovim#12621
Closed

Allow to show signcolumn on top of numbers column #4515

sheerun opened this issue Jun 8, 2019 · 8 comments · Fixed by neovim/neovim#12621

Comments

@sheerun
Copy link

sheerun commented Jun 8, 2019

The current available options for signcolumn are auto, yes, and no, all of whom have their annoyances:

  • no - doesn't allow to highlight lines at all
  • yes - always takes space in vim even when no errors or warning as highlighted
  • auto - makes text in vim "jump" when error or warning happens

Describe the solution you'd like

An extra option number that makes markers to be visible on top of numbers column. This solution has following advantages:

  • no space is taken when there are no errors or warnings
  • text is not jumping when errors or warnings start to be highlighted
@brammool
Copy link
Contributor

brammool commented Jun 9, 2019 via email

@bfredl
Copy link
Contributor

bfredl commented Jun 9, 2019

Recently Neovim added some thing similar. But instead of showing sign text in the number column, a sign option numhl was added to change the highlight of the number column. Similar to a sign only using linehl, such a sign doesn't need the sign column.

The patch is here https://github.com/neovim/neovim/pull/9113/files but is bit out of date due to the recent sign refactors. If this is interesting I could help porting it.

@brammool
Copy link
Contributor

brammool commented Jun 9, 2019 via email

@vim-ml
Copy link

vim-ml commented Jun 16, 2019 via email

@vim-ml
Copy link

vim-ml commented Jun 16, 2019 via email

@vim-ml
Copy link

vim-ml commented Jun 16, 2019 via email

@vim-ml
Copy link

vim-ml commented Jun 16, 2019 via email

@sheerun
Copy link
Author

sheerun commented Jun 18, 2019

It's like a dream, thank you @brammool :)

manuelschiller pushed a commit to manuelschiller/vim that referenced this issue Nov 10, 2019
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim#4555, closes vim#4515)
Shougo added a commit to Shougo/neovim that referenced this issue Jul 11, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 11, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 11, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 11, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 12, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 12, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 13, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 13, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 13, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 13, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 14, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 14, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 23, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
Shougo added a commit to Shougo/neovim that referenced this issue Jul 23, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
tjdevries pushed a commit to tjdevries/neovim that referenced this issue Aug 10, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
tjdevries pushed a commit to tjdevries/neovim that referenced this issue Aug 10, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
tjdevries pushed a commit to tjdevries/neovim that referenced this issue Aug 10, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
tjdevries pushed a commit to tjdevries/neovim that referenced this issue Aug 10, 2020
Problem:    Sign column takes up space.  (Adam Stankiewicz)
Solution:   Optionally put signs in the number column. (Yegappan Lakshmanan,
            closes vim/vim#4555, closes vim/vim#4515)
vim/vim@394c5d8
GustavoMF31 added a commit to GustavoMF31/dotfiles that referenced this issue Apr 19, 2023
Comparing the date on vim/vim#4515 to the
release history on the readme for https://github.com/vim/vim-history
leads to the conclusion that it was made available on 8.2, which is
expressed as 802. Will make the .vimrc usable without error by more
versions of vim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants