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