Skip to content

Commit

Permalink
feat(tailwind): don't enable tailwind in markdown files
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 21, 2023
1 parent b227d97 commit 2955445
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lua/lazyvim/plugins/extras/lang/tailwind.lua
Expand Up @@ -3,7 +3,18 @@ return {
"neovim/nvim-lspconfig",
opts = {
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,
},
},
},
Expand Down

0 comments on commit 2955445

Please sign in to comment.