feat: lualine UI improvements

This commit is contained in:
NotAShelf 2023-06-06 01:49:48 +03:00
parent 6e21655c3f
commit 8845d7a54d
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 30 additions and 16 deletions

View file

@ -179,6 +179,7 @@ inputs: let
vim.ui = {
noice.enable = true;
colorizer.enable = true;
modes-nvim.enable = true;
smartcolumn = {
enable = true;
columnAt.languages = {

View file

@ -6,6 +6,10 @@
with lib;
with builtins; let
supported_themes = import ./supported_themes.nix;
colorPuccin =
if config.vim.statusline.lualine.theme == "catppuccin"
then "#181825"
else "none";
in {
options.vim.statusline.lualine = {
enable = mkEnableOption "lualine statusline plugin";
@ -119,6 +123,7 @@ in {
{
{
"mode",
icons_enabled = true,
separator = {
left = '',
right = ''
@ -138,11 +143,11 @@ in {
colored = true,
icon_only = true,
icon = { align = 'left' },
color = {bg='none', fg='lavender'},
color = {bg='${colorPuccin}', fg='lavender'},
},
{
"filename",
color = {bg='none'},
color = {bg='${colorPuccin}'},
symbols = {modified = '', readonly = ''},
},
}
@ -165,7 +170,7 @@ in {
},
symbols = {added = '+', modified = '~', removed = '-'}, -- Changes the diff symbols
color = {
bg='none',
bg='${colorPuccin}',
fg='lavender'
},
},
@ -198,13 +203,15 @@ in {
default = ''
{
{
"fileformat",
color = {bg='none', fg='lavender'},
symbols = {
unix = '', -- e712
dos = '', -- e70f
mac = '', -- e711
'searchcount',
maxcount = 999,
timeout = 120,
},
{
"branch",
icon = ' ',
color = {bg='${colorPuccin}', fg='lavender'},
},
}
'';
@ -217,16 +224,22 @@ in {
{
{
"progress",
color = {bg='none', fg='lavender'},
separator = {
left = '',
},
},
{
"location",
color = {bg='none', fg='lavender'},
},
{
"branch",
icon = ' ',
color = {bg='none', fg='lavender'},
"fileformat",
color = {fg='black'},
symbols = {
unix = '', -- e712
dos = '', -- e70f
mac = '', -- e711
},
},
}
'';