A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/MaximilianLloyd/adjacent.nvim below:

MaximilianLloyd/adjacent.nvim: A tiny telescope extension to find files in the same directory as the current buffer.

A tiny telescope extension to find files in the same directory as the current buffer.

You're working a on a large codebase with a lot of directories and similar file names. Usually you're working on components or modules for an extended period. You want to quickly be able to find the relevant associated files. But also be able to jump into another component and having the same utility without having to manage some sort of bookmark system.

Being able to search files adjecent to the one you're currently working on. In the example shown below i can just search for "scss" instead of the file name.

...
use({ "MaximilianLloyd/adjacent.nvim" })
...
Register telescope extension
telescope.load_extension("adjacent")
	extensions = {
		adjacent = {
			level = 1 -- default
		}
	},

It can be run by using Telescope adjacent.

Then you can map to a key

vim.keymap.set("n", "<leader>fa", "<cmd>Telescope adjacent<CR>", { noremap = true, silent = false })

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4