From f8c866d3f52e83d33943414b5d3c00fa6ff64e00 Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 11 Aug 2026 17:56:02 +0200 Subject: [PATCH] replace lualine with slimline --- nixos/nixvim/nixvim.nix | 3 -- nixos/nixvim/plugins/barbar.nix | 1 + nixos/nixvim/plugins/lualine.nix | 52 --------------------------- nixos/nixvim/plugins/plugins.nix | 2 +- nixos/nixvim/plugins/statusline.nix | 56 +++++++++++++++++++++++++++++ 5 files changed, 58 insertions(+), 56 deletions(-) delete mode 100644 nixos/nixvim/plugins/lualine.nix create mode 100644 nixos/nixvim/plugins/statusline.nix diff --git a/nixos/nixvim/nixvim.nix b/nixos/nixvim/nixvim.nix index c73c708..b3c38eb 100644 --- a/nixos/nixvim/nixvim.nix +++ b/nixos/nixvim/nixvim.nix @@ -1,7 +1,4 @@ { - inputs, - config, - lib, pkgs, ... }: diff --git a/nixos/nixvim/plugins/barbar.nix b/nixos/nixvim/plugins/barbar.nix index f15d275..b151786 100644 --- a/nixos/nixvim/plugins/barbar.nix +++ b/nixos/nixvim/plugins/barbar.nix @@ -2,6 +2,7 @@ programs.nixvim.plugins.barbar = { enable = true; settings = { + animation = false; icons = { buffer_index = true; }; diff --git a/nixos/nixvim/plugins/lualine.nix b/nixos/nixvim/plugins/lualine.nix deleted file mode 100644 index 11cd6bd..0000000 --- a/nixos/nixvim/plugins/lualine.nix +++ /dev/null @@ -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" - ]; - }; - }; - }; - -} diff --git a/nixos/nixvim/plugins/plugins.nix b/nixos/nixvim/plugins/plugins.nix index 5b4acda..392ef6f 100644 --- a/nixos/nixvim/plugins/plugins.nix +++ b/nixos/nixvim/plugins/plugins.nix @@ -3,8 +3,8 @@ ./barbar.nix ./toggleterm.nix ./cord.nix - ./lualine.nix ./telescope.nix + ./statusline.nix ]; programs.nixvim = { plugins = { diff --git a/nixos/nixvim/plugins/statusline.nix b/nixos/nixvim/plugins/statusline.nix new file mode 100644 index 0000000..c96ac57 --- /dev/null +++ b/nixos/nixvim/plugins/statusline.nix @@ -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', + }, + }, + }, + }) + ''; +}