You've already forked dotfiles
29 lines
603 B
Lua
29 lines
603 B
Lua
local function get_schema()
|
|
local schema = require('yaml-companion').get_buf_schema(0)
|
|
if schema.result[1].name == 'none' then
|
|
return ''
|
|
end
|
|
return schema.result[1].name
|
|
end
|
|
|
|
vim.pack.add({
|
|
-- 'https://github.com/nvim-tree/nvim-web-devicons',
|
|
'https://github.com/nvim-lualine/lualine.nvim'
|
|
})
|
|
|
|
require('lualine').setup {
|
|
tabline = {
|
|
lualine_a = {
|
|
'tabs',
|
|
},
|
|
lualine_z = {
|
|
'buffers',
|
|
}
|
|
},
|
|
sections = {
|
|
lualine_x = {
|
|
'encoding', 'fileformat', 'filetype', get_schema
|
|
},
|
|
}
|
|
}
|