feat(extras): tags some extras as recommended

This commit is contained in:
Folke Lemaitre
2024-05-18 14:12:21 +02:00
parent 16eb3d9473
commit ef3bd3bd02
10 changed files with 93 additions and 60 deletions

View File

@ -1,5 +1,5 @@
return { return {
recommended = true,
-- copilot -- copilot
{ {
"zbirenbaum/copilot.lua", "zbirenbaum/copilot.lua",

View File

@ -2,6 +2,7 @@
return { return {
"echasnovski/mini.ai", "echasnovski/mini.ai",
desc = "Enhanced text objects", desc = "Enhanced text objects",
recommended = true,
-- keys = { -- keys = {
-- { "a", mode = { "x", "o" } }, -- { "a", mode = { "x", "o" } },
-- { "i", mode = { "x", "o" } }, -- { "i", mode = { "x", "o" } },

View File

@ -4,6 +4,7 @@
-- and more. -- and more.
return { return {
"echasnovski/mini.surround", "echasnovski/mini.surround",
recommended = true,
keys = function(_, keys) keys = function(_, keys)
-- Populate the keys based on the user's options -- Populate the keys based on the user's options
local opts = LazyVim.opts("mini.surround") local opts = LazyVim.opts("mini.surround")

View File

@ -1,7 +1,8 @@
-- better yank/paste
return { return {
-- better yank/paste
{
"gbprod/yanky.nvim", "gbprod/yanky.nvim",
recommended = true,
desc = "Better Yank/Paste",
opts = { opts = {
highlight = { timer = 150 }, highlight = { timer = 150 },
}, },
@ -26,5 +27,4 @@ return {
{ "=p", "<Plug>(YankyPutAfterFilter)", desc = "Put After Applying a Filter" }, { "=p", "<Plug>(YankyPutAfterFilter)", desc = "Put After Applying a Filter" },
{ "=P", "<Plug>(YankyPutBeforeFilter)", desc = "Put Before Applying a Filter" }, { "=P", "<Plug>(YankyPutBeforeFilter)", desc = "Put Before Applying a Filter" },
}, },
},
} }

View File

@ -12,6 +12,8 @@ end
return { return {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
recommended = true,
desc = "Debugging support. Requires language specific adapters to be configured. (see lang extras)",
dependencies = { dependencies = {

View File

@ -15,6 +15,8 @@ end
return { return {
"monaqa/dial.nvim", "monaqa/dial.nvim",
recommended = true,
desc = "Increment and decrement numbers, dates, and more",
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<C-a>", function() return M.dial(true) end, expr = true, desc = "Increment", mode = {"n", "v"} }, { "<C-a>", function() return M.dial(true) end, expr = true, desc = "Increment", mode = {"n", "v"} },

View File

@ -9,6 +9,19 @@ local lsp = vim.g.lazyvim_python_lsp or "pyright"
local ruff = vim.g.lazyvim_python_ruff or "ruff_lsp" local ruff = vim.g.lazyvim_python_ruff or "ruff_lsp"
return { return {
recommended = function()
return LazyVim.extras.wants({
ft = "python",
root = {
"pyproject.toml",
"setup.py",
"setup.cfg",
"requirements.txt",
"Pipfile",
"pyrightconfig.json",
},
})
end,
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)

View File

@ -10,6 +10,19 @@ local inlay_hints_settings = {
} }
return { return {
recommended = function()
return LazyVim.extras.wants({
ft = {
"javascript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescriptreact",
"typescript.tsx",
},
root = { "tsconfig.json", "package.json", "jsconfig.json" },
})
end,
-- add typescript to treesitter -- add typescript to treesitter
{ {

View File

@ -1,4 +1,6 @@
return { return {
recommended = true,
desc = "Neotest support. Requires language specific adapters to be configured. (see lang extras)",
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
optional = true, optional = true,

View File

@ -1,7 +1,7 @@
-- animations
return { return {
-- animations
{
"echasnovski/mini.animate", "echasnovski/mini.animate",
recommended = true,
event = "VeryLazy", event = "VeryLazy",
opts = function() opts = function()
-- don't use animate when scrolling with the mouse -- don't use animate when scrolling with the mouse
@ -33,5 +33,4 @@ return {
}, },
} }
end, end,
},
} }