tailwind lsp
This commit is contained in:
parent
4d922170b2
commit
883b1e5655
1 changed files with 43 additions and 0 deletions
43
nvim/lua/kickstart/plugins/tailwind-tools.lua
Normal file
43
nvim/lua/kickstart/plugins/tailwind-tools.lua
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue