mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 18:28:50 +02:00
feat(tailwind): don't enable tailwind in markdown files
This commit is contained in:
parent
b227d9727a
commit
29554455aa
1 changed files with 12 additions and 1 deletions
|
@ -3,7 +3,18 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
tailwindcss = {},
|
tailwindcss = {
|
||||||
|
filetypes_exclude = { "markdown" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
setup = {
|
||||||
|
tailwindcss = function(_, opts)
|
||||||
|
local tw = require("lspconfig.server_configurations.tailwindcss")
|
||||||
|
--- @param ft string
|
||||||
|
opts.filetypes = vim.tbl_filter(function(ft)
|
||||||
|
return not vim.tbl_contains(opts.filetypes_exclude, ft)
|
||||||
|
end, tw.default_config.filetypes)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue