style(nvim): lualine

This commit is contained in:
thek4n 2024-07-02 11:18:45 +03:00
parent c7deca5a68
commit 33101ebb85
2 changed files with 4 additions and 8 deletions

View File

@ -12,7 +12,7 @@ opt.relativenumber = true
opt.clipboard:append { 'unnamed' }
opt.clipboard:append { 'unnamedplus' }
opt.shortmess:append{a = true, s = true, I = true, c = true}
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true}
opt.cmdheight = 0
vim.wo.signcolumn = "yes:1"

View File

@ -44,11 +44,7 @@ return {
{
'vim.fn.getcwd()',
fmt = function(str)
local res = str
res = str:gsub(os.getenv("HOME"), "~")
return res
return str:gsub(os.getenv("HOME"), "~")
end,
color = { fg='white', gui='bold' },
padding = { left = 1, right = 0 }
@ -72,8 +68,8 @@ return {
},
},
lualine_x = {'GET_FORMATTED_VIRTUAL_ENV()', 'DETECT_INDENT_TYPE()', 'filetype'},
lualine_y = {'progress'},
lualine_z = {'location'},
lualine_y = {'searchcount'},
lualine_z = {'location', 'selectioncount'},
},
})
end,