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 -- Set lualine as statusline
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt` dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = { opts = {
options = { options = {
icons_enabled = true,
theme = 'dracula', theme = 'dracula',
component_separators = '|', globalstatus = true,
section_separators = { left = '', right = '' }, },
sections = {
lualine_c = {
{
'filename',
path = 1,
},
},
lualine_x = { 'fileformat', 'filetype' },
lualine_y = {},
}, },
}, },
}, },

View File

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