summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2025-10-17 12:48:36 +0300
committerYigit Sever2025-10-17 12:48:36 +0300
commitb4e478ba33df53e282758cd5e7adc753fc0dc186 (patch)
treecf0fc7086bb596c0249027784db5c7b1e283ec32 /.config
parent544493be54bc3bf531cea1b20e9fe36aba5a5d90 (diff)
downloaddotfiles-b4e478ba33df53e282758cd5e7adc753fc0dc186.tar.gz
dotfiles-b4e478ba33df53e282758cd5e7adc753fc0dc186.tar.bz2
dotfiles-b4e478ba33df53e282758cd5e7adc753fc0dc186.zip
nvim: add trouble bindings to telescope
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/plugins/telescope.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua
index bfda4aa..24f820d 100644
--- a/.config/nvim/lua/plugins/telescope.lua
+++ b/.config/nvim/lua/plugins/telescope.lua
@@ -12,10 +12,16 @@ return {
12 "gbprod/yanky.nvim", 12 "gbprod/yanky.nvim",
13 }, 13 },
14 config = function() 14 config = function()
15 local open_with_trouble = require("trouble.sources.telescope").open
16
15 require('telescope').setup({ 17 require('telescope').setup({
16 defaults = { 18 defaults = {
17 path_display = { "truncate" }, 19 path_display = { "truncate" },
18 prompt_prefix = " ", 20 prompt_prefix = " ",
21 mappings = {
22 i = { ["<leader>xt"] = open_with_trouble },
23 n = { ["<leader>xt"] = open_with_trouble },
24 },
19 }, 25 },
20 extensions = { 26 extensions = {
21 fzf = { 27 fzf = {