mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 12:34:37 +02:00
feat: added trouble integration
This commit is contained in:
parent
bedeb66fa9
commit
1b34b481c8
1 changed files with 5 additions and 10 deletions
|
@ -39,11 +39,6 @@ return {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
[1] = "default-title",
|
[1] = "default-title",
|
||||||
keymap = {
|
|
||||||
fzf = {
|
|
||||||
["ctrl-q"] = "select-all+accept",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
fzf_colors = {
|
fzf_colors = {
|
||||||
["fg"] = { "fg", "FzfLuaNormal" },
|
["fg"] = { "fg", "FzfLuaNormal" },
|
||||||
["bg"] = { "bg", "FzfLuaNormal" },
|
["bg"] = { "bg", "FzfLuaNormal" },
|
||||||
|
@ -62,11 +57,11 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
if opts.profile then
|
local config = require("fzf-lua.config")
|
||||||
opts[1] = opts.profile
|
local actions = require("trouble.sources.fzf").actions
|
||||||
-- require("fzf-lua").setup({ opts.profile })
|
config.defaults.actions.files["ctrl-t"] = actions.open_all
|
||||||
-- opts.profile = nil
|
config.defaults.actions.files["alt-t"] = actions.open
|
||||||
end
|
config.defaults.keymap.fzf["ctrl-q"] = "select-all+accept"
|
||||||
-- vim.env.FZF_DEFAULT_OPTS = ""
|
-- vim.env.FZF_DEFAULT_OPTS = ""
|
||||||
require("fzf-lua").setup(opts)
|
require("fzf-lua").setup(opts)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue