Skip to content

Commit

Permalink
Merge pull request #258 from noirbizarre/fix/devicons
Browse files Browse the repository at this point in the history
fix(devicons): properly fetch devicons by filetype
  • Loading branch information
OXY2DEV authored Jan 26, 2025
2 parents 0af0b48 + 1a60203 commit 19ad950
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/markview/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,8 @@ fts.get = function (ft)
local conf = {};

if provider_name == "devicons" and pcall(require, "nvim-web-devicons") then
conf.icon, conf.icon_hl = require("nvim-web-devicons").get_icon(
string.format("example.%s", ft),
nil,
conf.icon, conf.icon_hl = require("nvim-web-devicons").get_icon_by_filetype(
ft,
{ default = true }
);

Expand Down

0 comments on commit 19ad950

Please sign in to comment.