add:native css color highlighter

This commit is contained in:
2026-04-14 03:38:27 +09:00
parent 2bd4cc0098
commit 67d1e11934
3 changed files with 8 additions and 0 deletions

View File

@@ -78,6 +78,9 @@ function M.setup()
if client:supports_method("textDocument/definition") then
vim.bo[bufnr].tagfunc = "v:lua.vim.lsp.tagfunc"
end
if client:supports_method("textDocument/documentColor") then
vim.lsp.document_color.enable(true, { bufnr = bufnr }, { style = "virtual" })
end
local map = function(mode, lhs, rhs, desc)
vim.keymap.set(mode, lhs, rhs, {

View File

@@ -7,6 +7,7 @@ M.tools = {
{ kind = "lsp", lsp = "tailwindcss", mason = "tailwindcss-language-server" },
{ kind = "lsp", lsp = "ts_ls", mason = "typescript-language-server" },
{ kind = "lsp", lsp = "html", mason = "html-lsp" },
{ kind = "lsp", lsp = "cssls", mason = "css-lsp" },
{ kind = "lsp", lsp = "pyright", mason = "pyright" },
{ kind = "lsp", lsp = "templ", mason = "templ" },
{ kind = "lsp", lsp = "gopls", mason = "gopls" },

View File

@@ -36,6 +36,10 @@
"rev": "086a40dc7ed8242c03be9f47fbcee68699cc2395",
"src": "https://github.com/stevearc/conform.nvim"
},
"grug-far.nvim": {
"rev": "21604255d0e8f9968322f61f2b6c09e5efe1285a",
"src": "https://github.com/MagicDuck/grug-far.nvim"
},
"indent-blankline.nvim": {
"rev": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03",
"src": "https://github.com/lukas-reineke/indent-blankline.nvim"