From 1a602031fa0549b1e0c0dba4f116187ea1313005 Mon Sep 17 00:00:00 2001 From: "Axel H." Date: Sat, 25 Jan 2025 19:38:27 +0100 Subject: [PATCH] fix(devicons): properly fetch devicons by filetype --- lua/markview/filetypes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/markview/filetypes.lua b/lua/markview/filetypes.lua index 522dbeb..5a268ea 100644 --- a/lua/markview/filetypes.lua +++ b/lua/markview/filetypes.lua @@ -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 } );