-
-
Notifications
You must be signed in to change notification settings - Fork 583
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
relativenumber is turned off for buffers opened in a split via fzf #396
Comments
Does this seem related? junegunn/fzf#930 |
@junegunn It seems similar, and could be related, but it's not exactly the same thing. That issues seems to disable vim's relativenumber option globally as soon as you open an fzf panel. My issue happens when I open a split via FZF. But if I later open a new split through some other method (nerdtree, or simply Also, not sure if relevant, but that issue is marked as happening in both neovim and vim, where mine seems to not happen on my vim installation, and only in neovim |
The vim plugin of fzf and fzf.vim do not set or unset |
@junegunn I can confirm that building neovim from their master branch fixes the issue. Thanks! Oh, and thank you for an awesome tool |
Seems like now terminal windows follow the same default options as other windows. Do you think fzf should override and disable line numbers? |
Related: neovim/neovim#6832 |
I would like that, and think it is reasonable. Line numbers don't contribute useful information within the FZF pane and just take up space. Alternatively FZF could instruct users to use this solution from the issue you referenced:
That disables lines in all terminal buffers though, which may not be desirable. |
junegunn/fzf.vim#396 (comment) One can override the setting on FileType fzf autocmd.
Let me know if you run into any issues. |
Works for me, thanks! |
This seems to happen in neovim (v0.2.0), but not in vim
Reproducing
open a file via the
:Files
command in a horizontal or vertical split or tab (i.e. search for any file, and press Ctrl-X, Ctrl-V or Ctrl-T)The newly open buffer will not have relative numbers enabled
Doing something such as
autocmd BufEnter * set relativenumber
does not seem to helpAlso, opening the new file in the same buffer instead of in a split does not trigger the issue
This issue does not occur with
set number
. only relative numbers seem to be affectedThe text was updated successfully, but these errors were encountered: