diff options
author | Yigit Sever | 2025-10-17 12:48:36 +0300 |
---|---|---|
committer | Yigit Sever | 2025-10-17 12:48:36 +0300 |
commit | b4e478ba33df53e282758cd5e7adc753fc0dc186 (patch) | |
tree | cf0fc7086bb596c0249027784db5c7b1e283ec32 /.config | |
parent | 544493be54bc3bf531cea1b20e9fe36aba5a5d90 (diff) | |
download | dotfiles-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.lua | 6 |
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 = { |