You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and this plugin doesn't respect my own settings and overrides them. So, if user explicitly has set nonumber and norelativenumber this plugin shouldn't override them.
This also potentially will solve the problem with g:relativity_filetype_ignore variable. Instead of blacklisting common buffer names, check their number and relativenumber options first.
PS: I don't use this plugin, I just came to look your code and this is my friendly feedback.
I've been using something like this instead of this plugin, FYI.
augrouptogglerelativelinenumbersautocmd!autocmdInsertEnter,BufLeave,WinLeave,FocusLost*\ if &l:number&&empty(&buftype) |
\ setlocalnorelativenumber |
\ endifautocmdInsertLeave,BufEnter,WinEnter,FocusGained*\ if &l:number&&empty(&buftype) |
\ setlocalrelativenumber |
\ endifaugroupend
The text was updated successfully, but these errors were encountered:
My
~/.vim/ftplugin/markdown.vim
file has,and this plugin doesn't respect my own settings and overrides them. So, if user explicitly has set
nonumber
andnorelativenumber
this plugin shouldn't override them.This also potentially will solve the problem with
g:relativity_filetype_ignore
variable. Instead of blacklisting common buffer names, check theirnumber
andrelativenumber
options first.PS: I don't use this plugin, I just came to look your code and this is my friendly feedback.
I've been using something like this instead of this plugin, FYI.
The text was updated successfully, but these errors were encountered: