modified structure

This commit is contained in:
2025-09-19 00:36:56 +02:00
parent 0ec83088ff
commit 8037b20d9c
14 changed files with 201 additions and 232 deletions

View File

@@ -0,0 +1,34 @@
local config = require("config").plugins.telescope
local mappings = config.mappings
return {
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
local telescope = require("telescope")
local telescope_builtin = require("telescope.builtin")
telescope.setup({
defaults = {
prompt_prefix = "",
sorting_strategy = "ascending"
}
})
vim.keymap.set("n", mappings.open_file_finder, telescope_builtin.find_files, {
desc = "Open file finder",
noremap = true,
silent = true
})
vim.keymap.set("n", mappings.open_text_finder, telescope_builtin.live_grep, {
desc = "Open text finder",
noremap = true,
silent = true
})
end
}