tangled
alpha
login
or
join now
robinwobin.dev
/
lylla.nvim
3
fork
atom
🪴 a tiny, customizable statusline for neovim
3
fork
atom
overview
issues
pulls
pipelines
feat(utils): use filetype as name in `getfilename()`
robinwobin.dev
2 weeks ago
aa4d3bcd
9e7b3d43
+5
1 changed file
expand all
collapse all
unified
split
lua
lylla
utils.lua
+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
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
151
+
if vim.bo.buftype ~= "" then
152
152
+
return {}
153
153
+
end
154
154
+
150
155
local path = vim.fn.expand("%:p:~:.")
151
156
152
157
local file_path_list = {}