Nvim: revisit statusline

This commit is contained in:
pr0c3550r 2023-08-06 19:25:52 +02:00
parent 431891e497
commit c5bf8a3b98
3 changed files with 150 additions and 145 deletions

View file

@ -1,6 +1,6 @@
-- statusline
vim.api.nvim_set_option("laststatus", 2)
vim.api.nvim_set_option("statusline", " %F %h%m%r %= %= %l,%c ")
vim.api.nvim_set_option("statusline", " ")
-- tabline
-- always show tabline (0 = never, 1 = only with at least 2 tabs, 2 = always) and colors

View file

@ -12,10 +12,8 @@ return {
require('lualine').setup {
options = {
theme = custom_gruvbox,
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
-- section_separators = ' ',
-- component_separators = ' '
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = { 'netrw', 'Trouble' }
},
sections = {
@ -49,7 +47,17 @@ return {
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
},
{
'fileformat',
color = {gui = 'italic'},
symbols = {
unix = '(unix)',
dos = '(dos)',
mac = '(mac)',
},
}
},
lualine_y = {
{
@ -104,7 +112,16 @@ return {
fmt = function(str)
return (str:gsub("^%l", string.upper))
end,
}
},
{
'fileformat',
color = {gui = 'italic'},
symbols = {
unix = 'Unix',
dos = 'Dos',
mac = 'Mac',
},
},
},
lualine_y = {
{
@ -126,7 +143,7 @@ return {
{
'location',
padding = 1,
}
},
}
},
}

View file

@ -1,12 +0,0 @@
return {
{
"folke/twilight.nvim",
keys = {
{ "<leader>T", "<cmd>Twilight <cr>", desc = "Twilight" },
},
config = function()
require("twilight").setup {
}
end
}
}