moved lualine into separate file

This commit is contained in:
aliaksandrkotau 2024-04-10 10:40:05 +02:00
parent 3198f2870c
commit 96c376133b
2 changed files with 78 additions and 33 deletions

View file

@ -171,39 +171,7 @@ require('lazy').setup({
end,
},
{
-- TODO: move to plugins
-- Set lualine as statusline
'nvim-lualine/lualine.nvim',
-- See `:help lualine.txt`
opts = {
options = {
icons_enabled = false,
theme = _G.THEME_NAME,
component_separators = '|',
section_separators = '|',
},
--winbar = {} -- Not used, because `barbecue.nvim` uses it.
tabline = {
lualine_a = {'mode', 'branch'},
lualine_b = {'filename', 'diff', 'diagnostics'},
lualine_c = {'searchcount'},
lualine_x = {},
lualine_y = {},
lualine_z = {'windows', 'tabs'},
},
sections = {
lualine_a = {'mode'},
lualine_b = {},
lualine_c = {},
lualine_x = {'encoding', 'fileformat', 'filetype', 'filesize'},
lualine_y = {'progress'},
lualine_z = {'location', 'windows', 'tabs'}
},
},
},
{
-- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim',
@ -279,6 +247,7 @@ vim.wo.listchars = "tab:»·,trail:·,extends:>,precedes:<,nbsp:."
vim.wo.colorcolumn = '120'
vim.wo.wrap = false
vim.opt.cmdheight = 2
vim.opt.showmode = true
vim.opt.ignorecase = true
vim.opt.showtabline = 2