refactor(nvim): replace Telescope old_files w/ Telescope smart_open
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 34s

This commit is contained in:
Price Hiller 2024-12-26 16:13:28 -06:00
parent 82378445b0
commit 5d1d8aeaa6
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 13 additions and 3 deletions

View File

@ -205,7 +205,7 @@ return {
val = {
button("e", " New File", ":ene <BAR> startinsert <CR>"),
button("f", "󰈞 Find File", ":Telescope find_files<CR>"),
button("r", "󱝏 Recent", ":Telescope oldfiles<CR>"),
button("r", "󱝏 Recent", ":Telescope smart_open<CR>"),
button("s", " Settings", "<cmd>e ~/.config/nvim/<CR>"),
button("u", " Update Plugins", ":Lazy sync<CR>"),
button("q", " Quit", ":qa<CR>"),

View File

@ -39,7 +39,7 @@ return {
{ "<leader>j", ":Telescope buffers<CR>", desc = "Telescope: Buffers", silent = true },
{ "<leader>tb", ":Telescope buffers<CR>", desc = "Telescope: Buffers", silent = true },
{ "<leader>th", ":Telescope help_tags<CR>", desc = "Telescope: Help Tags", silent = true },
{ "<leader>to", ":Telescope oldfiles<CR>", desc = "Telescope: Recent Files", silent = true },
{ "<leader>to", ":Telescope smart_open<CR>", desc = "Telescope: Smart Open", silent = true },
{
"<leader>tO",
":Telescope oldfiles only_cwd=true<CR>",
@ -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",
},
},
})