-
-
Notifications
You must be signed in to change notification settings - Fork 20
Home
Aquib edited this page Aug 14, 2021
·
6 revisions
Welcome to the staline.nvim wiki!
This page is just for showing some examples of various styles of statuslines you can create.
Config:
require("staline").setup {
sections = {
left = {
'▊', ' ', { 'Evil', ' ' }, ' ', -- The mode and evil sign
'file_size', ' ', -- Filesize
{ 'StalineFile', 'filename' }, ' ' -- Filename in different highlight
},
mid = { ' ', 'lsp_name' }, -- "lsp_name" is still a little buggy
right = {
{ 'StalineEnc', vim.bo.fileencoding:upper() }, ' ', -- Example for custom section
{ 'StalineEnc', 'cool_symbol' }, ' ', -- the cool_symbol for your OS
{ 'StalineGit', 'branch' }, ' ', '▊' -- Branch Name in different highlight
}
},
defaults = {
bg = "#202328",
branch_symbol = " "
},
mode_colors = {
n = "#38b1f0",
i = "#9ece6a", -- etc mode
}
}
vim.cmd [[hi Evil guifg=#f36365 guibg=#202328]] -- Higlight for Evil symbol
vim.cmd [[hi StalineEnc guifg=#7d9955 guibg=#202328]] -- Encoding Highlight
vim.cmd [[hi StalineGit guifg=#8583b3 guibg=#202328]] -- Branch Name Highlight
vim.cmd [[hi StalineFile guifg=#c37cda guibg=#202328]] -- File name Highlight