You've already forked dotfiles
configurations and using newer built-in functionality in the 0.12.x versions of Neovim. Further work is needed for treesitter updates, cleanup of the conversion work and testing to verify old functionality isn't lessened to get the benefits of a cleaner config and vastly faster load times.
29 lines
600 B
Lua
29 lines
600 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
|
|
},
|
|
}
|
|
}
|