mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 09:48:59 +02:00
feat(extras): tags some extras as recommended
This commit is contained in:
parent
16eb3d9473
commit
ef3bd3bd02
10 changed files with 93 additions and 60 deletions
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
|
recommended = true,
|
||||||
-- copilot
|
-- copilot
|
||||||
{
|
{
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
|
|
|
@ -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" } },
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
|
-- better yank/paste
|
||||||
return {
|
return {
|
||||||
-- better yank/paste
|
"gbprod/yanky.nvim",
|
||||||
{
|
recommended = true,
|
||||||
"gbprod/yanky.nvim",
|
desc = "Better Yank/Paste",
|
||||||
opts = {
|
opts = {
|
||||||
highlight = { timer = 150 },
|
highlight = { timer = 150 },
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
{ "<leader>p", function() require("telescope").extensions.yank_history.yank_history({ }) end, desc = "Open Yank History" },
|
{ "<leader>p", function() require("telescope").extensions.yank_history.yank_history({ }) end, desc = "Open Yank History" },
|
||||||
{ "y", "<Plug>(YankyYank)", mode = { "n", "x" }, desc = "Yank Text" },
|
{ "y", "<Plug>(YankyYank)", mode = { "n", "x" }, desc = "Yank Text" },
|
||||||
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Cursor" },
|
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Cursor" },
|
||||||
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Cursor" },
|
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Cursor" },
|
||||||
{ "gp", "<Plug>(YankyGPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Selection" },
|
{ "gp", "<Plug>(YankyGPutAfter)", mode = { "n", "x" }, desc = "Put Yanked Text After Selection" },
|
||||||
{ "gP", "<Plug>(YankyGPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Selection" },
|
{ "gP", "<Plug>(YankyGPutBefore)", mode = { "n", "x" }, desc = "Put Yanked Text Before Selection" },
|
||||||
{ "[y", "<Plug>(YankyCycleForward)", desc = "Cycle Forward Through Yank History" },
|
{ "[y", "<Plug>(YankyCycleForward)", desc = "Cycle Forward Through Yank History" },
|
||||||
{ "]y", "<Plug>(YankyCycleBackward)", desc = "Cycle Backward Through Yank History" },
|
{ "]y", "<Plug>(YankyCycleBackward)", desc = "Cycle Backward Through Yank History" },
|
||||||
{ "]p", "<Plug>(YankyPutIndentAfterLinewise)", desc = "Put Indented After Cursor (Linewise)" },
|
{ "]p", "<Plug>(YankyPutIndentAfterLinewise)", desc = "Put Indented After Cursor (Linewise)" },
|
||||||
{ "[p", "<Plug>(YankyPutIndentBeforeLinewise)", desc = "Put Indented Before Cursor (Linewise)" },
|
{ "[p", "<Plug>(YankyPutIndentBeforeLinewise)", desc = "Put Indented Before Cursor (Linewise)" },
|
||||||
{ "]P", "<Plug>(YankyPutIndentAfterLinewise)", desc = "Put Indented After Cursor (Linewise)" },
|
{ "]P", "<Plug>(YankyPutIndentAfterLinewise)", desc = "Put Indented After Cursor (Linewise)" },
|
||||||
{ "[P", "<Plug>(YankyPutIndentBeforeLinewise)", desc = "Put Indented Before Cursor (Linewise)" },
|
{ "[P", "<Plug>(YankyPutIndentBeforeLinewise)", desc = "Put Indented Before Cursor (Linewise)" },
|
||||||
{ ">p", "<Plug>(YankyPutIndentAfterShiftRight)", desc = "Put and Indent Right" },
|
{ ">p", "<Plug>(YankyPutIndentAfterShiftRight)", desc = "Put and Indent Right" },
|
||||||
{ "<p", "<Plug>(YankyPutIndentAfterShiftLeft)", desc = "Put and Indent Left" },
|
{ "<p", "<Plug>(YankyPutIndentAfterShiftLeft)", desc = "Put and Indent Left" },
|
||||||
{ ">P", "<Plug>(YankyPutIndentBeforeShiftRight)", desc = "Put Before and Indent Right" },
|
{ ">P", "<Plug>(YankyPutIndentBeforeShiftRight)", desc = "Put Before and Indent Right" },
|
||||||
{ "<P", "<Plug>(YankyPutIndentBeforeShiftLeft)", desc = "Put Before and Indent Left" },
|
{ "<P", "<Plug>(YankyPutIndentBeforeShiftLeft)", desc = "Put Before and Indent Left" },
|
||||||
{ "=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" },
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
||||||
|
|
|
@ -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"} },
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -1,37 +1,36 @@
|
||||||
|
-- animations
|
||||||
return {
|
return {
|
||||||
-- animations
|
"echasnovski/mini.animate",
|
||||||
{
|
recommended = true,
|
||||||
"echasnovski/mini.animate",
|
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
|
local mouse_scrolled = false
|
||||||
local mouse_scrolled = false
|
for _, scroll in ipairs({ "Up", "Down" }) do
|
||||||
for _, scroll in ipairs({ "Up", "Down" }) do
|
local key = "<ScrollWheel" .. scroll .. ">"
|
||||||
local key = "<ScrollWheel" .. scroll .. ">"
|
vim.keymap.set({ "", "i" }, key, function()
|
||||||
vim.keymap.set({ "", "i" }, key, function()
|
mouse_scrolled = true
|
||||||
mouse_scrolled = true
|
return key
|
||||||
return key
|
end, { expr = true })
|
||||||
end, { expr = true })
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local animate = require("mini.animate")
|
local animate = require("mini.animate")
|
||||||
return {
|
return {
|
||||||
resize = {
|
resize = {
|
||||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||||
},
|
},
|
||||||
scroll = {
|
scroll = {
|
||||||
timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
||||||
subscroll = animate.gen_subscroll.equal({
|
subscroll = animate.gen_subscroll.equal({
|
||||||
predicate = function(total_scroll)
|
predicate = function(total_scroll)
|
||||||
if mouse_scrolled then
|
if mouse_scrolled then
|
||||||
mouse_scrolled = false
|
mouse_scrolled = false
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
return total_scroll > 1
|
return total_scroll > 1
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue