HASH 4c08871afec9
DATE 2025-01-07
SUBJECT neovim: center filename with lualine
FILES 2 CHANGED
HASH 4c08871afec9
DATE 2025-01-07
SUBJECT neovim: center filename with lualine
FILES 2 CHANGED
┌─ outputs/pkgs/ook-vim/config/plugins/statusline.nix ───────────────────────┐
│ diff --git a/outputs/pkgs/ook-vim/config/plugins/statusline.nix b/outputs/pkgs/ook │
│ -vim/config/plugins/statusline.nix │
│ index f376a24..c9c4216 100644 │
│ --- a/outputs/pkgs/ook-vim/config/plugins/statusline.nix │
│ +++ b/outputs/pkgs/ook-vim/config/plugins/statusline.nix │
│ @@ -28,7 +28,18 @@ │
│ } │
│ '' │
│ ]; │
│ - c = ["filename"]; │
│ + c = [ │
│ + #lua │
│ + '' │
│ + "%=", │
│ + { │
│ + "filename", │
│ + symbols = {modified = '? ', readonly = '? '}, │
│ + separator = {right = ' '}, │
│ + path = 1, │
│ + } │
│ + '' │
│ + ]; │
│ x = [ │
│ # lua │
│ '' │
│ @@ -47,6 +58,61 @@ │
│ } │
│ '' │
│ ]; │
│ + y = [ │
│ + #lua │
│ + '' │
│ + { │
│ + "", │
│ + draw_empty = true, │
│ + separator = { left = ' ', right = ' ' } │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + 'searchcount', │
│ + maxcount = 999, │
│ + timeout = 120, │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + "branch", │
│ + icon = '? -', │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + ]; │
│ + z = [ │
│ + #lua │
│ + '' │
│ + { │
│ + "", │
│ + draw_empty = true, │
│ + separator = { left = ' ', right = ' ' } │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + "progress", │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + '' │
│ + {"location"} │
│ + '' │
│ + '' │
│ + { │
│ + "fileformat", │
│ + color = {fg='black'}, │
│ + symbols = { │
│ + unix = '?', -- e712 │
│ + dos = '?', -- e70f │
│ + mac = '?', -- e711 │
│ + } │
│ + } │
│ + '' │
│ + ]; │
│ }; │
│ }; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...config/plugins/statusline.nix ───┐
│ diff --git a/outputs/pkgs/ook-vim/config/plu │
│ gins/statusline.nix b/outputs/pkgs/ook-vim/c │
│ onfig/plugins/statusline.nix │
│ index f376a24..c9c4216 100644 │
│ --- a/outputs/pkgs/ook-vim/config/plugins/st │
│ atusline.nix │
│ +++ b/outputs/pkgs/ook-vim/config/plugins/st │
│ atusline.nix │
│ @@ -28,7 +28,18 @@ │
│ } │
│ '' │
│ ]; │
│ - c = ["filename"]; │
│ + c = [ │
│ + #lua │
│ + '' │
│ + "%=", │
│ + { │
│ + "filename", │
│ + symbols = {modified = '? ', r │
│ eadonly = '? '}, │
│ + separator = {right = ' '}, │
│ + path = 1, │
│ + } │
│ + '' │
│ + ]; │
│ x = [ │
│ # lua │
│ '' │
│ @@ -47,6 +58,61 @@ │
│ } │
│ '' │
│ ]; │
│ + y = [ │
│ + #lua │
│ + '' │
│ + { │
│ + "", │
│ + draw_empty = true, │
│ + separator = { left = ' ', right │
│ = ' ' } │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + 'searchcount', │
│ + maxcount = 999, │
│ + timeout = 120, │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + "branch", │
│ + icon = '? -', │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + ]; │
│ + z = [ │
│ + #lua │
│ + '' │
│ + { │
│ + "", │
│ + draw_empty = true, │
│ + separator = { left = ' ', right │
│ = ' ' } │
│ + } │
│ + '' │
│ + '' │
│ + { │
│ + "progress", │
│ + separator = {left = ' '} │
│ + } │
│ + '' │
│ + '' │
│ + {"location"} │
│ + '' │
│ + '' │
│ + { │
│ + "fileformat", │
│ + color = {fg='black'}, │
│ + symbols = { │
│ + unix = '?', -- e712 │
│ + dos = '?', -- e70f │
│ + mac = '?', -- e711 │
│ + } │
│ + } │
│ + '' │
│ + ]; │
│ }; │
│ }; │
│ } │
└──────────────────────────────────────────────┘
┌─ outputs/pkgs/ook-vim/modules/plugins/gruvbox-material/config.nix ─────────┐
│ diff --git a/outputs/pkgs/ook-vim/modules/plugins/gruvbox-material/config.nix b/ou │
│ tputs/pkgs/ook-vim/modules/plugins/gruvbox-material/config.nix │
│ index bfe4345..4af5235 100644 │
│ --- a/outputs/pkgs/ook-vim/modules/plugins/gruvbox-material/config.nix │
│ +++ b/outputs/pkgs/ook-vim/modules/plugins/gruvbox-material/config.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ config, │
│ lib, │
│ - inputs, │
│ pkgs, │
│ ... │
│ }: let │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...s/gruvbox-material/config.nix ───┐
│ diff --git a/outputs/pkgs/ook-vim/modules/pl │
│ ugins/gruvbox-material/config.nix b/outputs/ │
│ pkgs/ook-vim/modules/plugins/gruvbox-materia │
│ l/config.nix │
│ index bfe4345..4af5235 100644 │
│ --- a/outputs/pkgs/ook-vim/modules/plugins/g │
│ ruvbox-material/config.nix │
│ +++ b/outputs/pkgs/ook-vim/modules/plugins/g │
│ ruvbox-material/config.nix │
│ @@ -1,7 +1,6 @@ │
│ { │
│ config, │
│ lib, │
│ - inputs, │
│ pkgs, │
│ ... │
│ }: let │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET