lualine.nvim/lua
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
..
lualine enhance(filetype): filetype option as fallback of file extension for icon detection (#415) 2021-11-08 07:22:30 +06:00
tests enhance: change method of getting file encoding 2021-10-22 21:18:27 +06:00
lualine.lua chore: repo transfer to nvim-lualine 2021-10-22 10:57:04 +06:00
lualine_require.lua doc: improve code documentation (#82) 2021-10-12 20:04:47 +06:00