changed diagnostic symbols and added full path to file in lualine
This commit is contained in:
parent
43c9b70355
commit
b19e3fe2b3
2 changed files with 22 additions and 14 deletions
|
@ -35,7 +35,9 @@ return {
|
|||
vim.keymap.set('n', '<space>fm', function() vim.lsp.buf.format { async = true } end, bufopts)
|
||||
end
|
||||
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
local signs = { Error = "✘ ", Warn = " ", Hint = " ", Info = " " }
|
||||
-- local signs = { Error = "✘ ", Warn = " ", Hint = " ", Info = " " }
|
||||
-- local signs = { Error = "✘ ", Warn = "⚠ ", Hint = " ", Info = " " } -- Unicode
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl })
|
||||
|
|
|
@ -5,6 +5,7 @@ return {
|
|||
vim.api.nvim_set_option("showmode",false)
|
||||
local custom_gruvbox = require'lualine.themes.gruvbox-material'
|
||||
custom_gruvbox.normal.a.bg = '#89b482'
|
||||
custom_gruvbox.normal.c.bg = '#141617'
|
||||
custom_gruvbox.insert.a.bg = '#d8a657'
|
||||
custom_gruvbox.visual.a.bg = '#a9b665'
|
||||
custom_gruvbox.replace.a.bg = '#ea6962'
|
||||
|
@ -18,32 +19,36 @@ return {
|
|||
lualine_a = {'mode'},
|
||||
lualine_b = {
|
||||
{
|
||||
'filename',
|
||||
color={gui='bold'},
|
||||
'branch',
|
||||
icon = '',
|
||||
color={fg='#d8a657', bg='#141617', gui='bold' },
|
||||
}
|
||||
},
|
||||
lualine_c = {
|
||||
{
|
||||
'branch',
|
||||
icon = '',
|
||||
color={fg='#d8a657', bg='#282828', gui='bold' },
|
||||
'filename',
|
||||
color={gui='italic', fg='#266b79', bg='#1d2021'},
|
||||
path = 3,
|
||||
}
|
||||
},
|
||||
lualine_x = {
|
||||
{
|
||||
'filetype',
|
||||
color={bg='#282828'},
|
||||
color={bg='#1d2021', fg='266b79', gui='italic'},
|
||||
}
|
||||
},
|
||||
lualine_y = {
|
||||
{
|
||||
'diagnostics',
|
||||
color={gui='bold'},
|
||||
color={gui='bold', bg='#141617'},
|
||||
sections = { 'error', 'warn', 'info', 'hint' },
|
||||
symbols = { error = "✘ ", warn = " ", info = " ", hint = " " }
|
||||
|
||||
},
|
||||
{
|
||||
'diff',
|
||||
icon = {' ', color={fg='#d8a657', gui='bold'}},
|
||||
color={gui='bold'},
|
||||
icon = {' ', color={bg='#141617', fg='#d8a657', gui='bold'}},
|
||||
color={gui='bold', bg='#141617'},
|
||||
}
|
||||
},
|
||||
lualine_z = {'location'}
|
||||
|
@ -53,14 +58,15 @@ return {
|
|||
lualine_a = {'mode'},
|
||||
lualine_b = {
|
||||
{
|
||||
'filename',
|
||||
'branch',
|
||||
icon = '',
|
||||
color={fg='#d8a657', bg='#282828'},
|
||||
}
|
||||
},
|
||||
lualine_c = {
|
||||
{
|
||||
'branch',
|
||||
icon = '',
|
||||
color={fg='#d8a657', bg='#282828'},
|
||||
'filename',
|
||||
path = 3,
|
||||
}
|
||||
},
|
||||
lualine_x = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue