Files
dotfiles/nvim/lua/plugins/lualine.lua
FaultyBranches 86475a8e8e feat: Removing nvim-lspconfig and starting the removal of Mason, adding
in LSP definitions for servers that are used, adding in a script to
check for LSPs, removing some extraneous items in the tmux conf, moving
autopairs to its own file
2026-08-16 20:19:05 -05:00

35 lines
666 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-lualine/lualine.nvim'
})
require('lualine').setup {
tabline = {
lualine_a = {
'tabs',
},
lualine_z = {
'buffers',
}
},
sections = {
lualine_c = {
'filename',
'lsp_status',
},
lualine_x = {
'encoding',
'fileformat',
'filetype',
get_schema,
},
}
}