replace lualine with slimline

This commit is contained in:
lucy 2026-08-11 17:56:02 +02:00
commit f8c866d3f5
5 changed files with 58 additions and 56 deletions

View file

@ -1,7 +1,4 @@
{ {
inputs,
config,
lib,
pkgs, pkgs,
... ...
}: }:

View file

@ -2,6 +2,7 @@
programs.nixvim.plugins.barbar = { programs.nixvim.plugins.barbar = {
enable = true; enable = true;
settings = { settings = {
animation = false;
icons = { icons = {
buffer_index = true; buffer_index = true;
}; };

View file

@ -1,52 +0,0 @@
{
programs.nixvim.plugins.lualine = {
enable = true;
settings = {
extensions = [ "toggleterm" ];
options = {
section_separators = {
left = "";
right = "";
};
component_separators = {
left = "::";
right = "::";
};
};
inactive_sections = {
lualine_a = [
"mode"
];
lualine_b = [ "" ];
lualine_c = [
"filename"
"diagnostics"
];
lualine_x = [
"lsp_status"
];
lualine_y = [ "" ];
lualine_z = [
"location"
];
};
sections = {
lualine_a = [
"mode"
];
lualine_c = [
"filename"
"diagnostics"
];
lualine_x = [
"lsp_status"
];
lualine_y = [ ];
lualine_z = [
"location"
];
};
};
};
}

View file

@ -3,8 +3,8 @@
./barbar.nix ./barbar.nix
./toggleterm.nix ./toggleterm.nix
./cord.nix ./cord.nix
./lualine.nix
./telescope.nix ./telescope.nix
./statusline.nix
]; ];
programs.nixvim = { programs.nixvim = {
plugins = { plugins = {

View file

@ -0,0 +1,56 @@
{ pkgs, ... }: {
programs.nixvim.extraPlugins = [ pkgs.vimPlugins.slimline-nvim ];
programs.nixvim.extraConfigLua = ''
require('slimline').setup({
spaces = {
components = " ",
left = "",
right = "",
},
components = {
left = {
'mode',
'path',
'diagnostics',
},
right = {
'filetype_lsp',
'progress',
},
},
sep = {
hide = {
first = true, -- hides the first separator of the line
last = true, -- hides the last separator of the line
},
left = " ",
right = " ",
},
style = 'fg',
bold = false,
hl = {
primary = 'StatusLine',
secondary = 'StatusLineNC',
base = 'StatusLine',
base_inactive = 'StatusLineNC',
},
configs = {
mode = {
verbose = true,
},
path = {
},
progress = {
follow = 'mode',
},
filetype_lsp = {
hl = {
primary = 'String',
secondary = 'Function',
},
},
},
})
'';
}