Compare commits
No commits in common. "cb286b897df534b024c86e65214083ad85caf9d3" and "6bd858ae4fe7caed7cf326bf22ad859c5c98bd44" have entirely different histories.
cb286b897d
...
6bd858ae4f
|
@ -451,17 +451,6 @@ end
|
||||||
|
|
||||||
require('telescope').setup {
|
require('telescope').setup {
|
||||||
defaults = {
|
defaults = {
|
||||||
-- path_display = "smart", -- realisitically should trim out pathlets, but is buggy to git views
|
|
||||||
get_selection_window = function(_, entry)
|
|
||||||
local bufnr = entry.bufnr
|
|
||||||
local tabpage = vim.api.nvim_get_current_tabpage()
|
|
||||||
for _, win_id in ipairs(vim.api.nvim_tabpage_list_wins(tabpage)) do
|
|
||||||
if vim.api.nvim_win_get_buf(win_id) == bufnr then
|
|
||||||
return win_id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return 0 -- Fallback to default behavior
|
|
||||||
end,
|
|
||||||
mappings = {
|
mappings = {
|
||||||
n = {
|
n = {
|
||||||
['<C-u>'] = function(prompt_bufnr) tel_actionset.shift_selection(prompt_bufnr, -math.floor(term_height() / 2)) end,
|
['<C-u>'] = function(prompt_bufnr) tel_actionset.shift_selection(prompt_bufnr, -math.floor(term_height() / 2)) end,
|
||||||
|
@ -469,8 +458,10 @@ require('telescope').setup {
|
||||||
[harpoon_keymap] = function(prompt_bufnr)
|
[harpoon_keymap] = function(prompt_bufnr)
|
||||||
mark_telescope_selections(prompt_bufnr)
|
mark_telescope_selections(prompt_bufnr)
|
||||||
end,
|
end,
|
||||||
|
['<CR>'] = tel_actions.select_drop,
|
||||||
},
|
},
|
||||||
i = {
|
i = {
|
||||||
|
['<CR>'] = tel_actions.select_drop,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -485,7 +476,7 @@ require('telescope').setup {
|
||||||
case_mode = 'smart_case'
|
case_mode = 'smart_case'
|
||||||
},
|
},
|
||||||
file_browser = {
|
file_browser = {
|
||||||
theme = "ivy",
|
theme = require('telescope.themes').get_ivy().theme,
|
||||||
hiject_netrw = true, -- disables netrw and use file-browser instead
|
hiject_netrw = true, -- disables netrw and use file-browser instead
|
||||||
mappings = {
|
mappings = {
|
||||||
["i"] = {}, -- disable any shortcut in insert mode for now
|
["i"] = {}, -- disable any shortcut in insert mode for now
|
||||||
|
@ -505,8 +496,7 @@ require('telescope').setup {
|
||||||
["s"] = fb_actions.toggle_all,
|
["s"] = fb_actions.toggle_all,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue