Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #245 from feline-nvim/develop
Browse files Browse the repository at this point in the history
v1.1.2
  • Loading branch information
famiu authored Mar 24, 2022
2 parents 1bd5158 + 2219d74 commit 290bea8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ 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.

## Self-plug
## Support

If you liked this plugin, also check out:
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.
8 changes: 3 additions & 5 deletions lua/feline/providers/file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ function M.file_info(component, opts)
end
end

if type == 'short-path' then
if filename == '' then
filename = '[No Name]'
elseif type == 'short-path' then
filename = fn.pathshorten(filename)
elseif type == 'base-only' then
filename = fn.fnamemodify(filename, ':t')
Expand All @@ -98,10 +100,6 @@ function M.file_info(component, opts)
filename = fn.fnamemodify(filename, ':t')
end

if filename == '' then
filename = '[No Name]'
end

if bo.readonly then
readonly_str = opts.file_readonly_icon or '🔒'
else
Expand Down

0 comments on commit 290bea8

Please sign in to comment.