Change status line
Time spent on writing Nix config: 5%: Testing new shiny things 7%: Debugging issues 88%: Gettings the colors and theming juuuuuust right Help, my sleep schedule is dying
This commit is contained in:
parent
7cd77af9bf
commit
09b201ca24
3 changed files with 106 additions and 172 deletions
|
|
@ -7,12 +7,8 @@
|
|||
{ event = "InsertEnter"; pattern = "*"; command = "set norelativenumber"; }
|
||||
{ event = "InsertLeave"; pattern = "*"; command = "set relativenumber"; }
|
||||
];
|
||||
extraConfigLua = builtins.readFile ./feline.lua;
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
nvim-scrollview # Scroll bar
|
||||
# Status line
|
||||
feline-nvim # Customizable status line.
|
||||
# TODO Abandonned. Maybe use lualine?
|
||||
];
|
||||
keymaps = [
|
||||
# barbar
|
||||
|
|
@ -36,13 +32,111 @@
|
|||
# TODO Other useful options?
|
||||
];
|
||||
options = {
|
||||
title = true;
|
||||
showmode = false;
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
title = true;
|
||||
};
|
||||
plugins = {
|
||||
# Tabline
|
||||
# Tablinee
|
||||
barbar.enable = true;
|
||||
# TODO Investigate bufferline?
|
||||
# Status line
|
||||
lualine = with config.lib.stylix.colors.withHashtag; let
|
||||
normal = { fg = base05; bg = base01; };
|
||||
inverted = { fg = base00; bg = base03; };
|
||||
normal_ina = { fg = base02; bg = base01; };
|
||||
inverted_ina = { fg = base00; bg = base02; };
|
||||
in
|
||||
rec {
|
||||
enable = true;
|
||||
inactiveSections = sections;
|
||||
sections = {
|
||||
lualine_a = [
|
||||
{
|
||||
name = ''string.format('%d', vim.fn.line('$'))'';
|
||||
}
|
||||
"location"
|
||||
];
|
||||
lualine_b = [
|
||||
"mode"
|
||||
];
|
||||
lualine_c = [{
|
||||
name = "filename";
|
||||
extraConfig = {
|
||||
path = 1; # Relative path
|
||||
symbols = {
|
||||
modified = "●";
|
||||
newfile = "";
|
||||
readonly = "";
|
||||
unnamed = "";
|
||||
};
|
||||
};
|
||||
}];
|
||||
lualine_x = (lib.mapAttrsToList
|
||||
(diag_name: diag_color: {
|
||||
name = "diagnostics";
|
||||
extraConfig = {
|
||||
color.bg = diag_color;
|
||||
colored = false;
|
||||
separator = { left = ""; right = ""; };
|
||||
sections = [ diag_name ];
|
||||
};
|
||||
})
|
||||
{
|
||||
error = base08;
|
||||
warn = base0A;
|
||||
hint = base0C;
|
||||
info = base0B;
|
||||
});
|
||||
lualine_y = [{
|
||||
name = "diff";
|
||||
extraConfig = {
|
||||
diff_color = {
|
||||
added.fg = base0B;
|
||||
modified.fg = base0A;
|
||||
removed.fg = base08;
|
||||
};
|
||||
symbols = {
|
||||
added = " ";
|
||||
modified = " ";
|
||||
removed = " ";
|
||||
};
|
||||
};
|
||||
}
|
||||
"branch"];
|
||||
lualine_z = [
|
||||
"filetype"
|
||||
"fileformat"
|
||||
"encoding"
|
||||
];
|
||||
};
|
||||
theme = (lib.mapAttrs
|
||||
(mode_name: mode_color: {
|
||||
a = inverted;
|
||||
b = inverted // { bg = mode_color; gui = "bold"; };
|
||||
c = normal;
|
||||
x = inverted;
|
||||
y = inverted;
|
||||
z = inverted // { bg = mode_color; };
|
||||
})
|
||||
{
|
||||
normal = base0D;
|
||||
insert = base0B;
|
||||
visual = base0F;
|
||||
replace = base08;
|
||||
command = base0E;
|
||||
}) // {
|
||||
inactive = {
|
||||
a = inverted_ina;
|
||||
b = normal_ina // { bg = base00; gui = "bold"; };
|
||||
c = normal_ina;
|
||||
x = inverted_ina;
|
||||
y = inverted_ina;
|
||||
z = normal_ina // { bg = base00; };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue