replace lualine with slimline
This commit is contained in:
parent
16de1cc410
commit
f8c866d3f5
5 changed files with 58 additions and 56 deletions
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
programs.nixvim.plugins.barbar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
animation = false;
|
||||
icons = {
|
||||
buffer_index = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
./barbar.nix
|
||||
./toggleterm.nix
|
||||
./cord.nix
|
||||
./lualine.nix
|
||||
./telescope.nix
|
||||
./statusline.nix
|
||||
];
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
|
|
|
|||
56
nixos/nixvim/plugins/statusline.nix
Normal file
56
nixos/nixvim/plugins/statusline.nix
Normal 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',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in a new issue