From 02a5e57ab60265ddcf22b2cc765e89cfa4092f0e Mon Sep 17 00:00:00 2001 From: zymon Date: Fri, 6 Sep 2024 18:50:08 +0200 Subject: [PATCH] web dev imprv --- lua/znvim/plugins/editor.lua | 12 ++++++++++++ lua/znvim/plugins/lsp.lua | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/lua/znvim/plugins/editor.lua b/lua/znvim/plugins/editor.lua index c63ac0f..58ab363 100644 --- a/lua/znvim/plugins/editor.lua +++ b/lua/znvim/plugins/editor.lua @@ -244,4 +244,16 @@ return { event = "BufReadPost", config = true, }, + { -- show colors + "https://github.com/norcalli/nvim-colorizer.lua", + ft = { "html", "css", "scss", }, + keys = { + { + "uh", + "ColorizerToggle", + desc = "Toggle background colors rendering", + }, + }, + config = true, + }, } diff --git a/lua/znvim/plugins/lsp.lua b/lua/znvim/plugins/lsp.lua index d897102..dc74a3d 100644 --- a/lua/znvim/plugins/lsp.lua +++ b/lua/znvim/plugins/lsp.lua @@ -136,6 +136,14 @@ return { }, }, }) + + lspconfig.cssls.setup { + capabilities = capabilities, + } + + lspconfig.html.setup { + capabilities = capabilities, + } end, },