Files
nvim-hardline/lua/hardline/filetype.lua
2020-12-22 18:50:04 +01:00

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