Add fuzzy finder
This commit is contained in:
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Neovim config
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- neovim at least 0.11
|
||||||
|
- xclip - clipboard shared with system
|
||||||
|
- ripgrep - text searching tool
|
||||||
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "5a7e5638e7d220575b1c22c8a2e099b52231886e" },
|
"nvim-treesitter": { "branch": "main", "commit": "5a7e5638e7d220575b1c22c8a2e099b52231886e" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "a8c2223ea6b185701090ccb1ebc7f4e41c4c9784" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" }
|
"tokyonight.nvim": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,6 +20,7 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
local plugins = {
|
local plugins = {
|
||||||
require("plugins.tokyonight"), -- theme
|
require("plugins.tokyonight"), -- theme
|
||||||
require("plugins.treesitter"), -- syntax tree
|
require("plugins.treesitter"), -- syntax tree
|
||||||
|
require("plugins.telescope"), -- fuzzy finder
|
||||||
}
|
}
|
||||||
|
|
||||||
require("lazy").setup(plugins)
|
require("lazy").setup(plugins)
|
||||||
|
|||||||
22
lua/plugins/telescope.lua
Normal file
22
lua/plugins/telescope.lua
Normal 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,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user