canola.nvim/doc
Barrett Ruth ded17258cd
feat(icon): add opt-in filetype detection via file contents
Problem: files without standard extensions (e.g. scripts with
shebangs, Makefile, Dockerfile) got incorrect or default icons since
icon providers match by filename or extension only.

Solution: add use_slow_filetype_detection option to the icon column
config. When enabled, reads the first 16 lines of each file and
passes them to vim.filetype.match for content-based detection. The
detected filetype is forwarded to mini.icons or nvim-web-devicons as
a trailing parameter, preserving backwards compatibility with
existing icon provider implementations.

Based on: stevearc/oil.nvim#618
2026-02-20 20:26:07 -05:00
..
api.md [docgen] Update docs 2026-02-20 21:33:22 +00:00
oil.txt feat(icon): add opt-in filetype detection via file contents 2026-02-20 20:26:07 -05:00
recipes.md docs: add recipe for custom file extension column 2026-02-20 16:16:49 -05:00