nvim: disable telescope-zf-native for now
This commit is contained in:
parent
f0e98b6b46
commit
b28004c168
1 changed files with 67 additions and 71 deletions
|
@ -1,75 +1,71 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"folke/flash.nvim",
|
"folke/flash.nvim",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"danielfalk/smart-open.nvim",
|
"danielfalk/smart-open.nvim",
|
||||||
branch = "0.2.x",
|
branch = "0.2.x",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"kkharji/sqlite.lua",
|
"kkharji/sqlite.lua",
|
||||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||||
{ "nvim-telescope/telescope-fzy-native.nvim" },
|
{ "nvim-telescope/telescope-fzy-native.nvim" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local util = require("lazyvim.util")
|
local util = require("lazyvim.util")
|
||||||
util.on_load("telescope.nvim", function()
|
util.on_load("telescope.nvim", function()
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
telescope.load_extension("smart_open")
|
telescope.load_extension("smart_open")
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"telescope.nvim",
|
"telescope.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader><leader>",
|
"<leader><leader>",
|
||||||
function()
|
function()
|
||||||
require("telescope").extensions.smart_open.smart_open({
|
require("telescope").extensions.smart_open.smart_open({
|
||||||
filename_first = false,
|
filename_first = false,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
desc = "Telescope smart open",
|
desc = "Telescope smart open",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local actions = require("telescope.actions")
|
local actions = require("telescope.actions")
|
||||||
opts.defaults = {
|
opts.defaults = {
|
||||||
layout_strategy = "horizontal",
|
layout_strategy = "horizontal",
|
||||||
layout_config = {
|
layout_config = {
|
||||||
anchor = "top",
|
anchor = "top",
|
||||||
horizontal = {
|
horizontal = {
|
||||||
prompt_position = "top",
|
prompt_position = "top",
|
||||||
mirror = false,
|
mirror = false,
|
||||||
preview_width = 0.49,
|
preview_width = 0.49,
|
||||||
-- preview_height = 0.5,
|
-- preview_height = 0.5,
|
||||||
},
|
},
|
||||||
width = 0.9,
|
width = 0.9,
|
||||||
height = 0.9,
|
height = 0.9,
|
||||||
preview_cutoff = 10,
|
preview_cutoff = 10,
|
||||||
},
|
},
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
["<esc>"] = actions.close, -- <Esc> close popup
|
["<esc>"] = actions.close, -- <Esc> close popup
|
||||||
["<C-u>"] = false, -- <C-u> clear prompt
|
["<C-u>"] = false, -- <C-u> clear prompt
|
||||||
["<C-w>"] = false, -- <C-u> clear prompt
|
["<C-w>"] = false, -- <C-u> clear prompt
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- path_display = { "filename_first" },
|
-- path_display = { "filename_first" },
|
||||||
-- previewer = false,
|
-- previewer = false,
|
||||||
preview = {
|
preview = {
|
||||||
-- hide_on_startup = true,
|
-- hide_on_startup = true,
|
||||||
},
|
},
|
||||||
sorting_strategy = "ascending",
|
sorting_strategy = "ascending",
|
||||||
winblend = 0,
|
winblend = 0,
|
||||||
wrap_results = true,
|
wrap_results = true,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"natecraddock/telescope-zf-native.nvim",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue