diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/alpha.lua b/users/price/dots/.config/nvim/lua/plugins/configs/alpha.lua index 4637d104..013e79af 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/alpha.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/alpha.lua @@ -205,7 +205,7 @@ return { val = { button("e", " New File", ":ene startinsert "), button("f", "󰈞 Find File", ":Telescope find_files"), - button("r", "󱝏 Recent", ":Telescope oldfiles"), + button("r", "󱝏 Recent", ":Telescope smart_open"), button("s", " Settings", "e ~/.config/nvim/"), button("u", " Update Plugins", ":Lazy sync"), button("q", " Quit", ":qa"), diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua b/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua index f1a631e8..4e8bca7c 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/telescope.lua @@ -39,7 +39,7 @@ return { { "j", ":Telescope buffers", desc = "Telescope: Buffers", silent = true }, { "tb", ":Telescope buffers", desc = "Telescope: Buffers", silent = true }, { "th", ":Telescope help_tags", desc = "Telescope: Help Tags", silent = true }, - { "to", ":Telescope oldfiles", desc = "Telescope: Recent Files", silent = true }, + { "to", ":Telescope smart_open", desc = "Telescope: Smart Open", silent = true }, { "tO", ":Telescope oldfiles only_cwd=true", @@ -108,6 +108,13 @@ return { }, "debugloop/telescope-undo.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, + { + "danielfalk/smart-open.nvim", + dependences = { + "kkharji/sqlite.lua", + { "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, + }, + }, }, config = function() local telescope = require("telescope") @@ -128,6 +135,7 @@ return { }, }, defaults = { + ---@diagnostic disable-next-line: undefined-field winblend = vim.opt.winblend:get(), vimgrep_arguments = { "rg", @@ -189,7 +197,6 @@ return { file_sorter = require("telescope.sorters").get_fuzzy_file, generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter, path_display = { "truncate" }, - winblend = 0, border = {}, borderchars = { " ", "", "", "", "", "", "", "" }, results_title = false, @@ -225,6 +232,9 @@ return { auto_validate = true, db_safe_mode = false, }, + smart_open = { + match_algorithm = "fzf", + }, }, })