nvim: changed statusline

master
tiyn 1 year ago
parent c49698c79f
commit 4bd7201a76

@ -53,6 +53,7 @@ return require("lazy").setup({
config = function() config = function()
require('lualine').setup({ require('lualine').setup({
options = { options = {
globalstatus = true,
symbols = { symbols = {
error = Error_sign, error = Error_sign,
warn = Warn_sign, warn = Warn_sign,
@ -64,9 +65,34 @@ return require("lazy").setup({
section_separators = { left = '', right = '' } section_separators = { left = '', right = '' }
}, },
sections = { sections = {
lualine_c = { lualine_b = {
{ require('gitblame').get_current_blame_text, cond = require('gitblame').is_blame_text_available } { require('gitblame').get_current_blame_text, cond = require('gitblame').is_blame_text_available }
} },
lualine_c = {},
lualine_x = {
'encoding',
'fileformat',
{
'filetype',
icon_only = true
}
},
lualine_y = {
{
'filename',
file_status = true,
newfile_status = true,
path = 1,
shorting_target = 50,
symbols = {
modified = Lualine_signs["modified"],
readonly = Lualine_signs["readonly"],
unnamed = Lualine_signs["unnamed"],
newfile = Lualine_signs["newfile"],
}
}
},
lualine_z = { 'progress', 'location' },
} }
}) })
end end
@ -480,6 +506,7 @@ return require("lazy").setup({
}) })
end, end,
}, },
-- scrollbar with git and diagnostics support for easier navigation -- scrollbar with git and diagnostics support for easier navigation
{ {
'petertriho/nvim-scrollbar', 'petertriho/nvim-scrollbar',

@ -88,6 +88,13 @@ Lazy_signs = {
} }
} }
Lualine_signs = {
modified = '',
readonly = '',
unnamed = '',
newfile = ''
}
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignError", "DiagnosticSignError",
{ texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" } { texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" }

Loading…
Cancel
Save