From b02bc37f25663973f60236ee0aae26324d9d48c2 Mon Sep 17 00:00:00 2001 From: pr0c3550r Date: Fri, 17 Feb 2023 23:13:13 +0100 Subject: [PATCH] changed diagnostic symbols and added full path to file in lualine --- nvim/.config/nvim/lua/plugin/lspconfig.lua | 4 ++- nvim/.config/nvim/lua/plugin/lualine.lua | 32 +++++++++++++--------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/nvim/.config/nvim/lua/plugin/lspconfig.lua b/nvim/.config/nvim/lua/plugin/lspconfig.lua index ffe5fa6..7c07da9 100644 --- a/nvim/.config/nvim/lua/plugin/lspconfig.lua +++ b/nvim/.config/nvim/lua/plugin/lspconfig.lua @@ -35,7 +35,9 @@ return { vim.keymap.set('n', '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 }) diff --git a/nvim/.config/nvim/lua/plugin/lualine.lua b/nvim/.config/nvim/lua/plugin/lualine.lua index 36fa662..deb5878 100644 --- a/nvim/.config/nvim/lua/plugin/lualine.lua +++ b/nvim/.config/nvim/lua/plugin/lualine.lua @@ -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 = {