Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Overrides ftdetect from filetype plugins #41

Closed
clason opened this issue Nov 8, 2021 · 3 comments
Closed

Overrides ftdetect from filetype plugins #41

clason opened this issue Nov 8, 2021 · 3 comments

Comments

@clason
Copy link

clason commented Nov 8, 2021

This may be a fundamental limitation of this approach rather than a bug that should be fixed, but I wanted to report it nevertheless (especially considering the possibility of upstreaming it):

When filetype.nvim is installed, it (correctly) disables the built-in filetype.vim. However, it also disables all ftdetect/foo.vim in runtimepath, which means that filetype plugins like https://github.com/lervag/vimtex which extend or correct Vim's detection logic no longer work.

Of course, I can mirror what the plugin's ftdetect/ scripts are doing in my setup, but a more conservative (and still as performant) approach would be to disable only filetype.vim but keep sourcing ftdetect/ scripts (which, however, may require changes in core so be only relevant for an upstream version).

@gegoune
Copy link
Contributor

gegoune commented Nov 8, 2021

Related #9

@clason
Copy link
Author

clason commented Nov 8, 2021

Agreed. Can you reopen that issue so I can close this as duplicate?

@clason
Copy link
Author

clason commented Nov 8, 2021

Duplicate of #9

@clason clason closed this as completed Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants