feat(plugin): enable markdownlint integration and activate UI components
Add missing markdownlint condition, streamline completion sources, and turn on previously disabled UI features. New Features: - Enable explorer, scroll, select, terminal, toggle, words, and zen UI components - Add TypeScript tool filetype support for JavaScript/JSX/TSX - Provide dynamic source selection for completion based on command context Enhancements: - Simplify markdownlint formatter configuration - Drop unused markdown-toc from markdown formatters - Refine default completion sources per command type Bug Fixes: - Remove redundant markdownlint condition check - Clean up formatter list by dropping markdown-toc- Add proper descriptions to WhichKey mappings
This commit is contained in:
5 files changed
+26
-28
No files matched your search
+2
-10
@@ -36,14 +36,6 @@ require("conform").setup({
|
||||
end
|
||||
end,
|
||||
},
|
||||
["markdownlint-cli2"] = {
|
||||
condition = function(_, ctx)
|
||||
local diag = vim.tbl_filter(function(d)
|
||||
return d.source == "markdownlint"
|
||||
end, vim.diagnostic.get(ctx.buf))
|
||||
return #diag > 0
|
||||
end,
|
||||
},
|
||||
},
|
||||
formatters_by_ft = {
|
||||
["lua"] = { "stylua" },
|
||||
@@ -54,8 +46,8 @@ require("conform").setup({
|
||||
["javascript"] = { "biome" },
|
||||
["typescript"] = { "biome" },
|
||||
["typescriptreact"] = { "biome" },
|
||||
["markdown"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
||||
["markdown.mdx"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
||||
["markdown"] = { "prettier", "markdownlint-cli2"},
|
||||
["markdown.mdx"] = { "prettier", "markdownlint-cli2" },
|
||||
["mdx"] = { "prettier" },
|
||||
["_"] = { "trim_whitespace" },
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user