mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 18:28:50 +02:00
feat(snacks): added trouble picker action
This commit is contained in:
parent
726fa2eea8
commit
6970d50fb4
1 changed files with 22 additions and 0 deletions
|
@ -71,6 +71,28 @@ return {
|
||||||
{ "<leader>qp", function() Snacks.picker.projects() end },
|
{ "<leader>qp", function() Snacks.picker.projects() end },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
if LazyVim.has("trouble.nvim") then
|
||||||
|
return vim.tbl_deep_extend("force", opts or {}, {
|
||||||
|
picker = {
|
||||||
|
actions = require("trouble.sources.snacks").actions,
|
||||||
|
win = {
|
||||||
|
input = {
|
||||||
|
keys = {
|
||||||
|
["<c-t>"] = {
|
||||||
|
"trouble_open",
|
||||||
|
mode = { "n", "i" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = function()
|
opts = function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue