fix(nvim): Translated lualine to nixvim

This commit is contained in:
Jalil David Salamé Messina 2024-03-02 21:53:30 +01:00
parent fc514537ca
commit b501155c96
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 10 additions and 51 deletions

View file

@ -18,7 +18,16 @@
};
};
lspkind.enable = true;
lualine = import ./lualine.nix;
lualine = {
enable = true;
theme = "gruvbox";
sections = {
lualine_a = [{ name = "mode"; }];
lualine_b = [{ name = "filename"; } { name = "branch"; }];
lualine_y = [{ name = "encoding"; } { name = "fileformat"; } { name = "filetype"; }];
lualine_z = [{ name = "location"; }];
};
};
luasnip = {
enable = true;
extraConfig = { update_events = "TextChanged,TextChangedI"; };

View file

@ -1,50 +0,0 @@
{
enable = true;
theme = "gruvbox";
sections = {
lualine_a = [ "mode" ];
lualine_b = [ "filename" "branch" ];
lualine_c = [
{
lsp_progress = {
separators = {
component = " ";
progress = " | ";
percentage = {
pre = "";
post = "%% ";
};
title = {
pre = "";
post = ": ";
};
lsp_client_name = {
pre = "[";
post = "]";
};
spinner = {
pre = "";
post = "";
};
message = {
pre = "(";
post = ")";
commenced = "In Progress";
completed = "Completed";
};
};
display_components = [ "lsp_client_name" "spinner" "title" "percentage" "message" ];
timer = {
progress_enddelay = 500;
spinner = 1000;
lsp_client_name_enddelay = 1000;
};
spinner_symbols = [ "🌑 " "🌒 " "🌓 " "🌔 " "🌕 " "🌖 " "🌗 " "🌘 " ];
};
}
];
lualine_x = [ ];
lualine_y = [ "encoding" "fileformat" "filetype" ];
lualine_z = [ "location" ];
};
}