From 6ee3f0e346210699b8673227778bee996daf71ab Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Mon, 2 Jun 2025 03:05:30 +0200 Subject: [PATCH] Switch to smart open --- nvim/dot-config/nvim/lazy-lock.json | 2 ++ .../dot-config/nvim/lua/plugins/telescope.lua | 22 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/nvim/dot-config/nvim/lazy-lock.json b/nvim/dot-config/nvim/lazy-lock.json index 1099290..5836dc9 100644 --- a/nvim/dot-config/nvim/lazy-lock.json +++ b/nvim/dot-config/nvim/lazy-lock.json @@ -33,8 +33,10 @@ "schema-companion.nvim": { "branch": "main", "commit": "7d662b6c1497fdd82e3e8836eb122f5c4b0d8277" }, "schemastore.nvim": { "branch": "main", "commit": "59d6bfa8c109675065f68a81664c17557cc19a9c" }, "scrollEOF.nvim": { "branch": "master", "commit": "2575109749b4bf3a0bf979a17947b3c1e8c5137e" }, + "smart-open.nvim": { "branch": "0.2.x", "commit": "560d8f16e17977c8303db6f9660db58a4415ca41" }, "smart-splits.nvim": { "branch": "master", "commit": "5aa2dd82d56cde2f01aef4e902c961e2f7a5453e" }, "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, + "sqlite.lua": { "branch": "master", "commit": "50092d60feb242602d7578398c6eb53b4a8ffe7b" }, "telescope-fzy-native.nvim": { "branch": "master", "commit": "282f069504515eec762ab6d6c89903377252bf5b" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, diff --git a/nvim/dot-config/nvim/lua/plugins/telescope.lua b/nvim/dot-config/nvim/lua/plugins/telescope.lua index 64e5915..a334c61 100644 --- a/nvim/dot-config/nvim/lua/plugins/telescope.lua +++ b/nvim/dot-config/nvim/lua/plugins/telescope.lua @@ -62,7 +62,7 @@ return { end, { desc = "Grep in open files" }) vim.keymap.set("n", "", function() - require("telescope.builtin").find_files() + require("telescope").extensions.smart_open.smart_open() end, { desc = "Find files" }) vim.keymap.set("n", "sh", function() require("telescope.builtin").help_tags() @@ -122,4 +122,24 @@ return { require("telescope").load_extension("fzy_native") end, }, + { + "danielfalk/smart-open.nvim", + branch = "0.2.x", + config = function() + require("telescope").load_extension("smart_open") + end, + dependencies = { + "kkharji/sqlite.lua", + "nvim-telescope/telescope.nvim", + "nvim-telescope/telescope-fzy-native.nvim", + { + "ellisonleao/gruvbox.nvim", + opts = function(_, opts) + local palette = require("gruvbox").palette + + opts.overrides.Directory = { fg = palette.neutral_blue, bold = false } + end, + }, + }, + }, }