lualine.nvim/lua/lualine
Fitrah Muhammad 9143f8a8d0
enhance(filetype): filetype option as fallback of file extension for icon detection (#415)
* enhance(filetype): filetype option precede extension for icon detection

Enhances icon detection for files without extension e.g. shebang or
modeline by using filetype option before the extension.

* fixup(filetype): filetype option as fallback of file extension

Some file icon keys defined by [nvim-web-devicons][1] using file
extension name instead of filetype option.

There's been an [issue][2] about this but no PR for it yet, so I think
for now we can handle it here.

[1]: https://github.com/kyazdani42/nvim-web-devicons
[2]: https://github.com/kyazdani42/nvim-web-devicons/issues/29

* refactor(filetype): `vim.api.nvim_buf_get_option` -> `vim.bo`
2021-11-08 07:22:30 +06:00
..
components enhance(filetype): filetype option as fallback of file extension for icon detection (#415) 2021-11-08 07:22:30 +06:00
extensions feat: add fern extension (#398) 2021-10-26 09:21:38 +06:00
themes chore: add license statements and update benchmarks 2021-09-20 17:48:22 +06:00
utils doc: improve code documentation (#82) 2021-10-12 20:04:47 +06:00
component.lua fixup: fix missing `self` (#84) 2021-10-13 07:17:24 +06:00
config.lua doc: improve code documentation (#82) 2021-10-12 20:04:47 +06:00
highlight.lua doc: improve code documentation (#82) 2021-10-12 20:04:47 +06:00