♻️ refactor(nvim): global variable for the lualine lsp, linter and formatter info modules
This commit is contained in:
parent
b0f00d3ae5
commit
ebcecceb14
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -40,9 +40,11 @@ return {
|
|||
}),
|
||||
}
|
||||
|
||||
table.insert(opts.sections.lualine_x, 2, lsp)
|
||||
table.insert(opts.sections.lualine_x, 2, formatter)
|
||||
table.insert(opts.sections.lualine_x, 2, linter)
|
||||
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 = "" },
|
||||
|
|
Loading…
Add table
Reference in a new issue