From 1167bad460c98bc527d8c30a29cb0f4b43aa0353 Mon Sep 17 00:00:00 2001 From: Andre Padez Date: Sat, 18 Oct 2025 12:48:26 +0100 Subject: [PATCH] more color goodies --- lua/config/options.lua | 11 +++++++++++ lua/plugins/colors.lua | 21 +++++++++++++-------- lua/plugins/lsp.lua | 12 ++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 lua/plugins/lsp.lua diff --git a/lua/config/options.lua b/lua/config/options.lua index 507434e..2c384e4 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -20,3 +20,14 @@ vim.diagnostic.config({ source = "if_many", }, }) + +-- Disable annoying signature help popup completely +vim.lsp.handlers["textDocument/signatureHelp"] = function() end +vim.api.nvim_create_autocmd("LspAttach", { + callback = function(args) + local client = vim.lsp.get_client_by_id(args.data.client_id) + if client then + client.server_capabilities.signatureHelpProvider = nil + end + end, +}) diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua index e2c3fb1..1c3ec09 100644 --- a/lua/plugins/colors.lua +++ b/lua/plugins/colors.lua @@ -15,14 +15,13 @@ return { -- You can customize base colors here if needed end, on_highlights = function(highlights, colors) - -- Fix unused imports/readability issues - -- Common highlight groups for unused/deprecated code: - highlights.Comment = { fg = colors.comment, bg = "NONE" } - highlights["@comment"] = { fg = colors.comment, bg = "NONE" } - highlights["@comment.todo"] = { fg = colors.comment, bg = "NONE" } - highlights["@comment.note"] = { fg = colors.comment, bg = "NONE" } - highlights["@comment.warning"] = { fg = colors.comment, bg = "NONE" } - highlights["@comment.error"] = { fg = colors.comment, bg = "NONE" } + -- Make comments lighter gray + highlights.Comment = { fg = "#7d8aa0", bg = "NONE" } -- Lighter gray + highlights["@comment"] = { fg = "#7d8aa0", bg = "NONE" } + highlights["@comment.todo"] = { fg = "#7d8aa0", bg = "NONE" } + highlights["@comment.note"] = { fg = "#7d8aa0", bg = "NONE" } + highlights["@comment.warning"] = { fg = "#7d8aa0", bg = "NONE" } + highlights["@comment.error"] = { fg = "#7d8aa0", bg = "NONE" } -- Completely disable unused/deprecated highlighting to preserve normal syntax highlights.DiagnosticUnnecessary = {} @@ -30,6 +29,12 @@ return { highlights["@lsp.type.comment"] = {} highlights.Deprecated = {} highlights["@deprecated"] = {} + + -- Make inlay hints very light gray + highlights.LspInlayHint = { fg = "#565f89", bg = "NONE" } + highlights["@lsp.inlayHint"] = { fg = "#565f89", bg = "NONE" } + highlights.InlayHint = { fg = "#565f89", bg = "NONE" } + highlights["@inlayHint"] = { fg = "#565f89", bg = "NONE" } end, }, }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..a37ac7a --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,12 @@ +return { + -- Configure LSP + { + "neovim/nvim-lspconfig", + opts = { + inlay_hints = { + enabled = true, + exclude = { "vue" }, + }, + }, + }, +} \ No newline at end of file