feat(extras): added trouble-v3 and mini-hipatterns to recommended
This commit is contained in:
@ -22,6 +22,8 @@ if vim.tbl_contains(Config.json.data.extras, "lazyvim.plugins.extras.editor.trou
|
||||
end
|
||||
|
||||
return {
|
||||
desc = "Trouble rewrite including document symbols and a lualine component",
|
||||
recommended = true,
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
branch = "dev",
|
||||
|
@ -5,6 +5,8 @@ M.hl = {}
|
||||
|
||||
M.plugin = {
|
||||
"echasnovski/mini.hipatterns",
|
||||
recommended = true,
|
||||
desc = "Highlight colors in your code. Also includes Tailwind CSS support.",
|
||||
event = "LazyFile",
|
||||
opts = function()
|
||||
local hi = require("mini.hipatterns")
|
||||
|
@ -219,10 +219,10 @@ function X:render()
|
||||
extra.section = nil
|
||||
end
|
||||
self:section({ enabled = true, title = "Enabled" })
|
||||
self:section({ recommended = true, filter = "^lang%.", title = "Recommended Languages", empty = false })
|
||||
self:section({ recommended = true, include = "^lang%.", title = "Recommended Languages", empty = false })
|
||||
self:section({ recommended = true, title = "Recommended Plugins", empty = false })
|
||||
self:section({ title = "Languages", filter = "^lang%." })
|
||||
self:section({ title = "Plugins" })
|
||||
self:section({ title = "Plugins", exclude = "^lang%." })
|
||||
self:section({ title = "Languages" })
|
||||
end
|
||||
|
||||
---@param extra LazyExtra
|
||||
@ -259,7 +259,7 @@ function X:extra(extra)
|
||||
self.text:nl()
|
||||
end
|
||||
|
||||
---@param opts {enabled?:boolean, title:string, recommended?:boolean, filter?:string, empty?:boolean}
|
||||
---@param opts {enabled?:boolean, title:string, recommended?:boolean, include?:string, exclude?:string, empty?:boolean}
|
||||
function X:section(opts)
|
||||
opts = opts or {}
|
||||
---@type LazyExtra[]
|
||||
@ -267,7 +267,8 @@ function X:section(opts)
|
||||
return extra.section == nil
|
||||
and (opts.enabled == nil or extra.enabled == opts.enabled)
|
||||
and (opts.recommended == nil or extra.recommended == opts.recommended)
|
||||
and (opts.filter == nil or extra.name:find(opts.filter))
|
||||
and (opts.include == nil or extra.name:find(opts.include))
|
||||
and (opts.exclude == nil or not extra.name:find(opts.exclude))
|
||||
end, self.extras)
|
||||
|
||||
if opts.empty == false and #extras == 0 then
|
||||
|
Reference in New Issue
Block a user