Replace colorizer with lsp's document_color

This commit is contained in:
2025-05-09 19:39:11 +02:00
parent 46f25eb193
commit 45b5e8c413
3 changed files with 9 additions and 27 deletions
-1
View File
@@ -100,7 +100,6 @@ in
dressing-nvim
mini-icons
which-key-nvim
nvim-colorizer-lua
quicker-nvim
lualine-nvim
nvim-navic
+9
View File
@@ -9,12 +9,21 @@ vim.lsp.enable("yamlls")
vim.lsp.enable("marksman")
vim.lsp.enable("texlab")
vim.lsp.enable("html")
vim.lsp.enable("cssls")
vim.lsp.enable("helm_ls")
vim.lsp.enable("zls")
vim.lsp.enable("gopls")
vim.lsp.enable("bashls")
vim.lsp.enable("jsonls")
vim.api.nvim_create_autocmd("LspAttach", {
desc = "Custom lsp attach",
group = vim.api.nvim_create_augroup("lsp-setup", { clear = true }),
callback = function(args)
vim.lsp.document_color.enable(true, args.buf, { style = "virtual" })
end,
})
return {
-- see https://github.com/seblyng/roslyn.nvim/pull/178
{
-26
View File
@@ -21,32 +21,6 @@ return {
end,
},
{
"nvim-colorizer.lua",
event = "BufReadPre",
opts = {
filetypes = {
'*',
html = { names = true },
css = { names = true },
},
user_default_options = {
mode = "virtualtext",
RGB = false,
RRGGBB = true,
names = false,
RRGGBBAA = true,
AARRGGBB = true,
rgb_fn = true,
hsl_fn = true,
tailwind = true,
},
},
after = function(plug)
require("colorizer").setup(plug.opts)
end
},
{
"quicker.nvim",
ft = "qf",