♻️ refactor(nvim): global variable for the lualine lsp, linter and formatter info modules

This commit is contained in:
Sergio Laín 2024-09-24 00:48:53 +02:00
parent b0f00d3ae5
commit ebcecceb14
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
2 changed files with 7 additions and 4 deletions

View file

@ -4,7 +4,8 @@ local o = vim.opt
-- Optimizations on startup
vim.loader.enable()
-- LazyVim related options
-- Personal Config and LazyVim global options
vim.g.lualine_info_extras = false
vim.g.lazyvim_statuscolumn.folds_open = true
vim.g.lazyvim_statuscolumn.folds_githl = true
vim.g.lazygit_config = false

View file

@ -40,9 +40,11 @@ return {
}),
}
if vim.g.lualine_info_extras == true then
table.insert(opts.sections.lualine_x, 2, lsp)
table.insert(opts.sections.lualine_x, 2, formatter)
table.insert(opts.sections.lualine_x, 2, linter)
end
opts.sections.lualine_y = { "progress" }
opts.sections.lualine_z = {
{ "location", separator = "" },