Skip to content

Commit

Permalink
feat: add new options for staline
Browse files Browse the repository at this point in the history
  • Loading branch information
redyf committed Feb 15, 2024
1 parent 0ea50b0 commit ab746d9
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions config/statusline/staline.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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" },
},
})
'';
}

0 comments on commit ab746d9

Please sign in to comment.