Configure lualine according to my tastes
This commit is contained in:
parent
767ad054bd
commit
8c5d2bc36e
|
@ -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 = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue