Skip to content

feat: disable_filetypes option#24

Closed
bennypowers wants to merge 3 commits intoya2s:mainfrom
bennypowers:feat/disable-filetype
Closed

feat: disable_filetypes option#24
bennypowers wants to merge 3 commits intoya2s:mainfrom
bennypowers:feat/disable-filetype

Conversation

@bennypowers
Copy link
Copy Markdown

@bennypowers bennypowers commented Jul 4, 2022

What I did

  • add disable_filetypes: string[] option
  • in CursorMoved, skip the rest of the cursorline logic if the filetype matches a disabled one
  • re-enable cursorline when entering a filetype listed in disable_filetypes
  • add a clearing autocmd group

Replaces #10

@bennypowers bennypowers force-pushed the feat/disable-filetype branch from 7a26d41 to ef067d8 Compare July 4, 2022 09:24
@bennypowers bennypowers force-pushed the feat/disable-filetype branch from ef067d8 to 3d4354e Compare July 4, 2022 09:25
cg1937 added a commit to cg1937/nvim-cursorline that referenced this pull request Oct 3, 2024
@ya2s
Copy link
Copy Markdown
Owner

ya2s commented Feb 14, 2026

Thanks for the proposal in #24. I implemented the same core direction and merged it with broader coverage in:
d4425a9

Compared to this PR, the merged change also covers:

  • disable_buftypes in addition to disable_filetypes
  • disable handling for both cursorline and cursorword
  • cursorword match cleanup on disabled buffers
  • augroup-based autocmd lifecycle

Closing this PR as superseded by the commit above. Thanks again for the original approach and motivation.

@ya2s ya2s closed this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants