unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.43k stars 54 forks source link

Add filetype blacklist #74

Closed jvcarli closed 3 years ago

jvcarli commented 3 years ago

Complements https://github.com/unblevable/quick-scope/pull/52.

Since (neo)vim defaults the buftype to an empty string, buftype blacklist can't be used for disabling quick-scope for plugins like dashboard-nvim and vim-startify without affecting file types where quick-scope is desired. This pull request makes it possible to disable quick-scope on selected file types.

Also, adding an empty to string to g:qs_filetype_blacklist list effectively turns off quick-scope for the terminal and other buf types that don't have a file type set, although it doesn't allow as much control as using g:qs_buftype_blacklist, so I left buftype blacklist unchanged.

bradford-smith94 commented 3 years ago

Thanks, I figured this would be needed but I didn't yet know of a use-case that required it.