From d277c520db04dd50399a5dbd1ea028d19b4e5541 Mon Sep 17 00:00:00 2001 From: George Fekete Date: Sun, 19 Apr 2026 13:34:26 +0300 Subject: [PATCH] Add LSP document color style config --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index 13727202e80..76277fafb7b 100644 --- a/init.lua +++ b/init.lua @@ -585,6 +585,13 @@ require('lazy').setup({ }) end + -- Set your preferred document color highlight style in the document if the LSP supports it and Neovim is >=0.12 + -- See `:help lsp-document_color` for more information. + if client and client:supports_method('textDocument/documentColor', event.buf) and vim.fn.has 'nvim-0.12' == 1 then + -- Possible presets for the `style` option: 'background', 'foreground', 'virtual', or a literal string + vim.lsp.document_color.enable(true, nil, { style = '󰌁 ' }) + end + -- The following code creates a keymap to toggle inlay hints in your -- code, if the language server you are using supports them --