tailwind in rust
This commit is contained in:
parent
9ddd428ec6
commit
6ee690987a
3 changed files with 75 additions and 53 deletions
|
@ -128,6 +128,19 @@ require("lspconfig").zls.setup{
|
|||
on_attach = on_attach,
|
||||
}
|
||||
|
||||
require("lspconfig").tailwindcss.setup {
|
||||
filetypes = {
|
||||
"astro", "astro-markdown", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "haml", "handlebars", "hbs", "html", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus", "sugarss", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte",
|
||||
"rust",
|
||||
},
|
||||
init_options = {
|
||||
userLanguages = {
|
||||
rust = "html",
|
||||
},
|
||||
},
|
||||
root_dir = require("lspconfig").util.root_pattern("tailwind.config.js", "tailwind.config.ts"),
|
||||
}
|
||||
|
||||
-- lspinfo
|
||||
require('fidget').setup()
|
||||
|
||||
|
@ -173,6 +186,7 @@ cmp.setup {
|
|||
end, { 'i', 's' }),
|
||||
},
|
||||
sources = {
|
||||
{ name = "otter" },
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = "crates" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue