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",