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:
sankalp committed 2026-05-08 21:40:40 +05:45
1 parent 1d130a655f
commit 1b5153df2d
5 files changed
+26 -28

No files matched your search

+8 -4
View File
@@ -1,7 +1,7 @@
add({
"saghen/blink.lib",
"saghen/blink.cmp",
"L3MON4D3/LuaSnip",
{ src = "saghen/blink.cmp", build = "cargo build --release" },
{ src = "L3MON4D3/LuaSnip", build = "make install_jsregexp" },
"rafamadriz/friendly-snippets",
})
@@ -9,8 +9,12 @@ require("blink.cmp").setup({
fuzzy = { implementation = "prefer_rust" },
snippets = { preset = "luasnip" },
sources = {
default = { "lsp", "path", "snippets", "buffer" },
providers = {},
default = function()
local type = vim.fn.getcmdtype()
if type == "/" or type == "?" then return { "buffer" } end
if type == ":" then return { "cmdline" } end
return { "lsp", "path", "snippets", "buffer" }
end,
},
completion = {