canola.nvim/scripts
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
..
generate.py feat(icon): add opt-in filetype detection via file contents 2026-02-20 20:26:07 -05:00
main.py ci: merge workflow jobs and add makefile 2023-09-02 08:48:11 -07:00
requirements.txt chore: rework Makefile to not depend on direnv 2024-11-10 16:38:45 -08:00