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 |     -- 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 = {}, | ||||||
|       }, |       }, | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|  | @ -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, | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue