🪴 a tiny, customizable statusline for neovim

feat(utils): use filetype as name in `getfilename()`

+5
+5
lua/lylla/utils.lua
··· 139 139 if vim.bo.buftype ~= "" then 140 140 local filetype = vim.bo.filetype 141 141 file_icon_raw, file_icon_hl = require("mini.icons").get("filetype", filetype) 142 + name = string.format("(%s)", vim.bo.filetype) 142 143 else 143 144 file_icon_raw, file_icon_hl = require("mini.icons").get("file", name) 144 145 end ··· 147 148 end 148 149 149 150 function utils.getfilepath() 151 + if vim.bo.buftype ~= "" then 152 + return {} 153 + end 154 + 150 155 local path = vim.fn.expand("%:p:~:.") 151 156 152 157 local file_path_list = {}