From ff0d829a7490654374551c8711dbe1e96e5e752b Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 27 Feb 2023 08:15:38 -0600 Subject: [PATCH] fix(nvim): embed correct file icon in silicon captures --- dots/.nvim-environments/primary/config/lua/plugins/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index db56da0a..596f049f 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -762,7 +762,7 @@ lazy.setup({ line_number = true, window_title = function() local devicons = require("nvim-web-devicons") - local icon = devicons.get_icon_by_filetype('lua') + local icon = devicons.get_icon_by_filetype(vim.bo.filetype) return icon .. ' ' .. vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ":~:.") end, })