Add fuzzy finder

This commit is contained in:
2026-01-14 21:13:26 +01:00
parent 3edbe2c7f3
commit 77050a542f
4 changed files with 34 additions and 2 deletions

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# Neovim config
## Dependencies
- neovim at least 0.11
- xclip - clipboard shared with system
- ripgrep - text searching tool

View File

@ -1,5 +1,7 @@
{
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"nvim-treesitter": { "branch": "main", "commit": "5a7e5638e7d220575b1c22c8a2e099b52231886e" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"telescope.nvim": { "branch": "master", "commit": "a8c2223ea6b185701090ccb1ebc7f4e41c4c9784" },
"tokyonight.nvim": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" }
}

View File

@ -20,6 +20,7 @@ vim.opt.rtp:prepend(lazypath)
local plugins = {
require("plugins.tokyonight"), -- theme
require("plugins.treesitter"), -- syntax tree
require("plugins.telescope"), -- fuzzy finder
}
require("lazy").setup(plugins)

22
lua/plugins/telescope.lua Normal file
View File

@ -0,0 +1,22 @@
return {
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim", -- required
},
lazy = false, -- load immediately
config = function()
local telescope = require("telescope")
telescope.setup({
defaults = {
file_ignore_patterns = { "node_modules", ".git/" },
prompt_prefix = "🔍 ",
selection_caret = "",
},
})
-- Optional: basic keymaps
local keymap = vim.keymap
keymap.set("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { silent = true })
keymap.set("n", "<leader>fg", "<cmd>Telescope live_grep<cr>", { silent = true })
end,
}