diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..f85de30 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +custom: "https://buymeacoffee.com/famiuhaque" diff --git a/README.md b/README.md index b658c4c..b93a607 100644 --- a/README.md +++ b/README.md @@ -203,9 +203,4 @@ The name of this plugin is a silly pun based on the convention of the names of s Feline uses [Semantic Versioning](https://semver.org/) for its version names. This is meant to ensure that releases after 1.0 do not break backwards compatibility without a MAJOR version bump, thus allowing users to have better control over when they want to install a change that might potentially break their workflow. ## Support - -If you liked this plugin, consider [supporting me.](https://www.buymeacoffee.com/famiuhaque) - -Also check out some of my other work: - -- [bufdelete.nvim](https://github.com/famiu/bufdelete.nvim) - Delete Neovim buffers without losing your window layout. +Buy Me A Coffee diff --git a/lua/feline/providers/file.lua b/lua/feline/providers/file.lua index ae07ca3..457d889 100644 --- a/lua/feline/providers/file.lua +++ b/lua/feline/providers/file.lua @@ -63,7 +63,7 @@ end function M.file_info(component, opts) local filename = api.nvim_buf_get_name(0) - local extension = fn.fnamemodify(filename, ':e') + local extension = bo.filetype local type = opts.type or 'base-only' local readonly_str, modified_str, icon @@ -144,7 +144,7 @@ end function M.file_type(component, opts) local filename = api.nvim_buf_get_name(0) - local extension = fn.fnamemodify(filename, ':e') + local extension = bo.filetype local filetype = bo.filetype local icon