From 38fe2f7481b32971e23b3fe7345c07582ddb3de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 30 Jan 2024 21:36:58 +0100 Subject: [PATCH] nvim: add lsp servers for html, htmx, and unocss --- nvim/.config/nvim/after/plugin/lspconfig.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nvim/.config/nvim/after/plugin/lspconfig.lua b/nvim/.config/nvim/after/plugin/lspconfig.lua index 6cd1207..75ae1d0 100644 --- a/nvim/.config/nvim/after/plugin/lspconfig.lua +++ b/nvim/.config/nvim/after/plugin/lspconfig.lua @@ -51,6 +51,22 @@ local servers = { telemetry = { enable = false }, }, }, + + html = {}, + htmx = {}, + unocss = {}, +} + +require 'lspconfig'.html.setup { + filetypes = { "html", "templ" }, +} + +require 'lspconfig'.htmx.setup { + filetypes = { "html", "templ" }, +} + +require 'lspconfig'.unocss.setup { + filetypes = { "html", "templ" }, } -- Setup neovim lua configuration