more color goodies
This commit is contained in:
@@ -20,3 +20,14 @@ vim.diagnostic.config({
|
|||||||
source = "if_many",
|
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,
|
||||||
|
})
|
||||||
|
|||||||
+13
-8
@@ -15,14 +15,13 @@ return {
|
|||||||
-- You can customize base colors here if needed
|
-- You can customize base colors here if needed
|
||||||
end,
|
end,
|
||||||
on_highlights = function(highlights, colors)
|
on_highlights = function(highlights, colors)
|
||||||
-- Fix unused imports/readability issues
|
-- Make comments lighter gray
|
||||||
-- Common highlight groups for unused/deprecated code:
|
highlights.Comment = { fg = "#7d8aa0", bg = "NONE" } -- Lighter gray
|
||||||
highlights.Comment = { fg = colors.comment, bg = "NONE" }
|
highlights["@comment"] = { fg = "#7d8aa0", bg = "NONE" }
|
||||||
highlights["@comment"] = { fg = colors.comment, bg = "NONE" }
|
highlights["@comment.todo"] = { fg = "#7d8aa0", bg = "NONE" }
|
||||||
highlights["@comment.todo"] = { fg = colors.comment, bg = "NONE" }
|
highlights["@comment.note"] = { fg = "#7d8aa0", bg = "NONE" }
|
||||||
highlights["@comment.note"] = { fg = colors.comment, bg = "NONE" }
|
highlights["@comment.warning"] = { fg = "#7d8aa0", bg = "NONE" }
|
||||||
highlights["@comment.warning"] = { fg = colors.comment, bg = "NONE" }
|
highlights["@comment.error"] = { fg = "#7d8aa0", bg = "NONE" }
|
||||||
highlights["@comment.error"] = { fg = colors.comment, bg = "NONE" }
|
|
||||||
|
|
||||||
-- Completely disable unused/deprecated highlighting to preserve normal syntax
|
-- Completely disable unused/deprecated highlighting to preserve normal syntax
|
||||||
highlights.DiagnosticUnnecessary = {}
|
highlights.DiagnosticUnnecessary = {}
|
||||||
@@ -30,6 +29,12 @@ return {
|
|||||||
highlights["@lsp.type.comment"] = {}
|
highlights["@lsp.type.comment"] = {}
|
||||||
highlights.Deprecated = {}
|
highlights.Deprecated = {}
|
||||||
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,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
-- Configure LSP
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
inlay_hints = {
|
||||||
|
enabled = true,
|
||||||
|
exclude = { "vue" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user