exp: Testing out yaml-companion plugin, moving nvim-lint to being on a

hotkey rather than on bufread and bufwrite
This commit is contained in:
2026-04-21 09:05:45 -05:00
parent 1d6b711561
commit 5426461dea
5 changed files with 45 additions and 15 deletions

View File

@@ -1,14 +1,15 @@
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
return {
'nvim-lualine/lualine.nvim',
config = function()
require('lualine').setup {
-- options = {
-- component_separators = { left = '\\', right = '/' },
-- component_separators = { left = '', right = '' },
-- section_separators = { left = '', right = '' },
-- globalstatus = true,
-- theme = 'gruvbox',
-- },
tabline = {
lualine_a = {
'tabs',
@@ -16,6 +17,11 @@ return {
lualine_z = {
'buffers',
}
},
sections = {
lualine_x = {
'encoding', 'fileformat', 'filetype', get_schema
},
}
}
end,