Skip to content

Commit

Permalink
fix(ex.lsp): fallback to the file's extension to get an icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-popov committed Dec 7, 2023
1 parent a497926 commit 87ba77d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lualine/components/ex/lsp/single.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ local function lsp_client_icon(client, icons)
-- or looking for it in the nvim-web-devicons
icons = devicons()
local fts = client.config.filetypes or { vim.bo.filetype }
table.insert(fts, vim.fn.expand('%:e'))
for _, ft in ipairs(fts) do
if icons[ft] then
dev_icon = icons[ft]
Expand Down

0 comments on commit 87ba77d

Please sign in to comment.