Files
nvim-hardline/lua/hardline/parts/filename.lua
2020-12-24 13:45:39 +01:00

17 lines
264 B
Lua

local common = require('hardline.common')
local function get_name()
return vim.fn.expand('%:~:.')
end
local function get_item()
return {
text = table.concat({' %<', get_name()}),
mode = common.get_active(),
}
end
return {
get_item = get_item,
}