From 883b1e5655ecfee3bbe424451b3a28aba53ca393 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Wed, 6 Nov 2024 23:09:09 +0300 Subject: [PATCH] tailwind lsp --- nvim/lua/kickstart/plugins/tailwind-tools.lua | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 nvim/lua/kickstart/plugins/tailwind-tools.lua diff --git a/nvim/lua/kickstart/plugins/tailwind-tools.lua b/nvim/lua/kickstart/plugins/tailwind-tools.lua new file mode 100644 index 0000000..d8d6afd --- /dev/null +++ b/nvim/lua/kickstart/plugins/tailwind-tools.lua @@ -0,0 +1,43 @@ +return { + 'luckasRanarison/tailwind-tools.nvim', + name = 'tailwind-tools', + build = ':UpdateRemotePlugins', + opts = { + server = { + override = true, -- setup the server from the plugin if true + settings = {}, -- shortcut for `settings.tailwindCSS` + on_attach = function(client, bufnr) end, -- callback triggered when the server attaches to a buffer + }, + document_color = { + enabled = true, -- can be toggled by commands + kind = 'inline', -- "inline" | "foreground" | "background" + inline_symbol = '󰝤 ', -- only used in inline mode + debounce = 200, -- in milliseconds, only applied in insert mode + }, + conceal = { + enabled = false, -- can be toggled by commands + min_length = nil, -- only conceal classes exceeding the provided length + symbol = '󱏿', -- only a single character is allowed + highlight = { -- extmark highlight options, see :h 'highlight' + fg = '#38BDF8', + }, + }, + cmp = { + highlight = 'foreground', -- color preview style, "foreground" | "background" + }, + telescope = { + utilities = { + callback = function(name, class) end, -- callback used when selecting an utility class in telescope + }, + }, + -- see the extension section to learn more + extension = { + queries = {}, -- a list of filetypes having custom `class` queries + patterns = { -- a map of filetypes to Lua pattern lists + -- example: + -- rust = { "class=[\"']([^\"']+)[\"']" }, + -- javascript = { "clsx%(([^)]+)%)" }, + }, + }, + }, -- your configuration +}