fix(nvim): embed correct file icon in silicon captures

This commit is contained in:
Price Hiller 2023-02-27 08:15:38 -06:00
parent 20705cfcf9
commit ff0d829a74
No known key found for this signature in database

View File

@ -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,
})