diff --git a/config/statusline/staline.nix b/config/statusline/staline.nix index 4c309987..ae07bb83 100644 --- a/config/statusline/staline.nix +++ b/config/statusline/staline.nix @@ -13,12 +13,30 @@ ]; extraConfigLua = '' require("staline").setup({ - defaults = { + sections = { + left = { "-mode", " ", "branch" }, + mid = { "lsp_name" }, + right = { "file_name", "line_column" }, + }, + inactive_sections = { + left = { "-mode", " ", "branch" }, + mid = { "lsp_name" }, + right = { "file_name", "line_column" }, + }, + defaults = { left_separator = " ", right_separator = " ", branch_symbol = " ", mod_symbol = "", line_column = "[%l/%L]", + inactive_color = "#80a6f2", --#303030 is the default + inactive_bgcolor = "none", + }, + special_table = { + lazy = { "Plugins", "💤 " }, + TelescopePrompt = { "Telescope", " " }, + oil = { "Oil", "󰏇 " }, + lazygit = { "LazyGit", " " }, }, mode_icons = { ["n"] = "NORMAL", @@ -42,15 +60,6 @@ ["c"] = "COMMAND", ["t"] = "TERMINAL", }, - special_table = { - lazy = { "Plugins", "💤 " }, - TelescopePrompt = { "Telescope", " " }, - }, - sections = { - left = { "-mode", " ", "branch" }, - mid = { "lsp_name" }, - right = { "file_name", "line_column" }, - }, }) ''; } diff --git a/flake.lock b/flake.lock index 33cc70b2..0f07e774 100644 --- a/flake.lock +++ b/flake.lock @@ -1,6 +1,20 @@ { "nodes": { "flake-compat": { + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "revCount": 57, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" + } + }, + "flake-compat_2": { "flake": false, "locked": { "lastModified": 1696426674, @@ -169,6 +183,7 @@ }, "nixvim": { "inputs": { + "flake-compat": "flake-compat", "flake-parts": "flake-parts", "home-manager": "home-manager", "nix-darwin": "nix-darwin", @@ -176,11 +191,11 @@ "pre-commit-hooks": "pre-commit-hooks" }, "locked": { - "lastModified": 1708003742, - "narHash": "sha256-Y2ET4HnijBUhVww5qs7bA076UyJq2X1zyKiTTcVP3x8=", + "lastModified": 1708033886, + "narHash": "sha256-uJP+bYDMrIHdOBrKHfRRuqsEIT1zEjCqE8oKHeVC6+Y=", "owner": "nix-community", "repo": "nixvim", - "rev": "2594863af79adcd140a80e8b1008333198d70830", + "rev": "dcbe894bea41567e4d751367666b249cfd489704", "type": "github" }, "original": { @@ -191,7 +206,7 @@ }, "pre-commit-hooks": { "inputs": { - "flake-compat": "flake-compat", + "flake-compat": "flake-compat_2", "flake-utils": "flake-utils_2", "gitignore": "gitignore", "nixpkgs": [