mox-mox / vim-localsearch

GNU General Public License v3.0
11 stars 1 forks source link

Remove 'starlight' reference #3

Closed subnut closed 3 years ago

subnut commented 4 years ago

@mox-mox I was thinking, should we mention in the README about the function localsearch#Toggle() that is made public? It would be useful for ... if someone wants to enable localsearch by default in init.vim

mox-mox commented 3 years ago

I'm not sure, why somebody would want to enable localsearch by default, but I'll merge a PR that mentions it. Sorry for the lengthy reply time...

subnut commented 3 years ago

I'm not sure, why somebody would want to enable localsearch by default

I do! :smile: I have localsearch#Enable() in my .vimrc I find it very helpful to have my last search local to the window. Thanks for this amazing plugin.

In fact, I even went as far as modifying the Localsearch extension in airline to allow a setting (let g:airline#extensions#localsearch#inverted = 1) to show the extension only when localsearch is disabled. It shows GS (denoting GlobalSearch) instead of LS

mox-mox commented 3 years ago

Sounds nice. Are you going to upstream your changes to the airline extension?

subnut commented 3 years ago

Already did 😄 vim-airline/vim-airline#2240

mox-mox commented 3 years ago

Uh, nice!