Configure lualine according to my tastes

This commit is contained in:
Juan Magalhães 2023-08-16 12:48:51 -03:00
parent 767ad054bd
commit 8c5d2bc36e
2 changed files with 15 additions and 4 deletions

View File

@ -66,13 +66,21 @@ local plugins = {
{
-- Set lualine as statusline
'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
options = {
icons_enabled = true,
theme = 'dracula',
component_separators = '|',
section_separators = { left = '', right = '' },
globalstatus = true,
},
sections = {
lualine_c = {
{
'filename',
path = 1,
},
},
lualine_x = { 'fileformat', 'filetype' },
lualine_y = {},
},
},
},

View File

@ -78,11 +78,14 @@ return {
require("ufo").setup(newOpts)
-- NOTE Uncommnt this to apply folds when opening a file
--[[
vim.api.nvim_create_autocmd('BufWinEnter', {
pattern = '*',
callback = function(e)
applyFoldsAndThenCloseAllFolds(e.buf, 'lsp')
end
})
--]]
end,
}