16 lines
237 B
Lua
16 lines
237 B
Lua
local vim = vim
|
|
local bo = vim.bo
|
|
local M = {}
|
|
|
|
function M.get_filetype()
|
|
return bo.filetype
|
|
end
|
|
|
|
function M.get_component()
|
|
return table.concat({
|
|
[[%{luaeval('require("hardline.filetype").get_filetype()')}]],
|
|
})
|
|
end
|
|
|
|
return M
|