Skip to content

Commit

Permalink
fix(provider/file): use correct icon for buffers not linked to a file…
Browse files Browse the repository at this point in the history
… (#251)
  • Loading branch information
famiu authored Apr 8, 2022
1 parent 3f332a4 commit d7b8c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/feline/providers/file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d7b8c67

Please sign in to comment.