Closed dmaluka closed 3 months ago
Help says:
* `filetype`: sets the filetype for the current buffer. Set this option to
`off` to completely disable filetype detection.
default value: `unknown`. This will be automatically overridden depending
on the file you open.
So, it does not explicitly say that unknown
gets automatically overridden even when setting it manually with set filetype unknown
, but one could guess so. :)
...Hmm, the off
value is also documented. And unlike unknown
, it doesn't work quite as expected: the filetype does change to off
, but the syntax highlighting does not disappear.
...Hmm, the
off
value is also documented. And unlikeunknown
, it doesn't work quite as expected: the filetype does change tooff
, but the syntax highlighting does not disappear.
Pushed https://github.com/zyedidia/micro/pull/3214/commits/d64c9443f5f7f94133297b3a34ee0e9a892f1ec8 to autocomplete it as well, and pushed https://github.com/zyedidia/micro/pull/3216 to fix its behavior.
unknown
is a valid value for thefiletype
option (and executingset filetype unknown
does what is expected: it forces filetype autodetection). So let's addunknown
to the autocomplete suggestions forfiletype
, along with actual filetypes.