From b350920ca4cbb90d9b8d7d70d27b0f658b97163c Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 25 Sep 2021 16:21:56 +0200 Subject: [PATCH 1/3] feat: shift notifications to the left --- .config/dunst/dunstrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index d74e571..004d100 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -70,7 +70,7 @@ hide_duplicates_count = yes # The width can be negative. In this case the actual width is the # screen width minus the width defined in within the geometry option. #geometry = "250x50-40+40" -geometry = "450x50-15+75" +geometry = "450x50-25+47" # Shrink window if it's smaller than the width. Will be ignored if # width is 0. From 9a89111c5a096b021247b0ebaf61f395502e923b Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 25 Sep 2021 17:34:20 +0200 Subject: [PATCH 2/3] feat: change neovim's LSP icons --- .config/nvim/lua/globals.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/globals.lua b/.config/nvim/lua/globals.lua index 4652999..8a77ef8 100644 --- a/.config/nvim/lua/globals.lua +++ b/.config/nvim/lua/globals.lua @@ -9,10 +9,10 @@ M = { lsp_path = vim.fn.stdpath("data").. "/lsp", -- misc - sign_error = "", - sign_warning = "", - sign_hint = "", - sign_info = "", + sign_error = "", + sign_warning = "", + sign_hint = "", + sign_info = "", } -- Make it accessible everywhere From 09b2d8221286b326b8ba4b05fdb65a34a3183b77 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 25 Sep 2021 17:39:20 +0200 Subject: [PATCH 3/3] feat: apply changes of neovim LSP LSP diagnostics changed names --- .config/nvim/lua/lsp/init.lua | 25 +++++++++++++------------ .config/nvim/lua/statusline.lua | 10 +++++----- .local/src/polyjuice | 2 +- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.config/nvim/lua/lsp/init.lua b/.config/nvim/lua/lsp/init.lua index c7e5d03..7dd9e93 100644 --- a/.config/nvim/lua/lsp/init.lua +++ b/.config/nvim/lua/lsp/init.lua @@ -6,34 +6,35 @@ local lsp = {} vim.fn.sign_define( - "LspDiagnosticsSignError", + "DiagnosticSignError", { - texthl = "LspDiagnosticsSignError", + texthl = "DiagnosticError", text = globals.sign_error, - numhl = "LspDiagnosticsSignError" + numhl = "DiagnosticError" } ) vim.fn.sign_define( - "LspDiagnosticsSignWarning", + "DiagnosticSignWarn", { - texthl = "LspDiagnosticsSignWarning", + texthl = "DiagnosticWarn", text = globals.sign_warning, - numhl = "LspDiagnosticsSignWarning"} + numhl = "DiagnosticWarn" + } ) vim.fn.sign_define( - "LspDiagnosticsSignHint", + "DiagnosticSignHint", { - texthl = "LspDiagnosticsSignHint", + texthl = "DiagnosticHint", text = globals.sign_hint, - numhl = "LspDiagnosticsSignHint" + numhl = "DiagnosticHint" } ) vim.fn.sign_define( - "LspDiagnosticsSignInformation", + "DiagnosticSignInfo", { - texthl = "LspDiagnosticsSignInformation", + texthl = "DiagnosticInfo", text = globals.sign_info, - numhl = "LspDiagnosticsSignInformation" + numhl = "DiagnosticInfo" } ) diff --git a/.config/nvim/lua/statusline.lua b/.config/nvim/lua/statusline.lua index b812165..2b8bafc 100644 --- a/.config/nvim/lua/statusline.lua +++ b/.config/nvim/lua/statusline.lua @@ -103,8 +103,8 @@ local function get_lsp_diagnostics(bufnr) local result = {} local levels = { errors = "Error", - warnings = "Warning", - info = "Information", + warnings = "Warn", + info = "Info", hints = "Hint" } @@ -148,17 +148,17 @@ local function statusline_focused() process_diagnostics( globals.sign_error .. " ", diagnostics.errors, - "%#LspDiagnosticsDefaultError#" + "%#DiagnosticError#" ), process_diagnostics( globals.sign_warning .. " ", diagnostics.warnings, - "%#LspDiagnosticsDefaultWarning#" + "%#DiagnosticWarn#" ), process_diagnostics( globals.sign_info .. " ", diagnostics.info, - "%#LspDiagnosticsDefaultInformation#" + "%#DiagnosticInfo#" ) } ) diff --git a/.local/src/polyjuice b/.local/src/polyjuice index 2596b02..bd4119a 160000 --- a/.local/src/polyjuice +++ b/.local/src/polyjuice @@ -1 +1 @@ -Subproject commit 2596b02be402dae70a915898edc9c4391805c489 +Subproject commit bd4119a8c1a57b84f9470950a514f52d81907abb