From c84e45ad0c165035d134539f80a8a0f1390c2086 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 7 Jan 2025 11:30:41 +0800 Subject: [PATCH] Trouble keymap & telescope avante --- lua/plugins/editing.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index 8f54c99..aa33ac8 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -70,6 +70,9 @@ return { vim.keymap.set('n', 'cd', builtin.diagnostics, { desc = 'Telescope diagnostics' }) vim.keymap.set('n', 'cr', builtin.lsp_references, { desc = 'Telescope lsp references' }) vim.keymap.set('n', 'cs', builtin.treesitter, { desc = 'Telescope treesitter' }) + vim.keymap.set("n", "ct", function() + vim.cmd [[Trouble diagnostics]] + end, { desc = "Run Trouble Diagnostics" }) -- file finding vim.keymap.set('n', 'pf', builtin.find_files, { desc = 'Telescope find in project' }) @@ -106,11 +109,6 @@ return { "folke/trouble.nvim", opts = {}, -- for default options, refer to the configuration section for custom setup. cmd = "Trouble", - config = function() - vim.keymap.set("n", "ct", function() - vim.cmd [[Trouble diagnostics]] - end, { desc = "Run Trouble Diagnostics" }) - end }, { "aznhe21/actions-preview.nvim", config = function() @@ -138,6 +136,10 @@ return { temperature = 0, max_tokens = 4096, }, + file_selector = { + provider = "telescope", + provider_opts = {}, + }, } }, { "NeogitOrg/neogit",