Finally modularize neovim configuration

This commit is contained in:
Alex Selimov 2025-09-03 09:05:52 -04:00
parent d4ca4668c4
commit e2697f61fd
No known key found for this signature in database
GPG key ID: BC03C17FF5CFFFD2
16 changed files with 872 additions and 1004 deletions

29
lua/plugins/telescope.lua Normal file
View file

@ -0,0 +1,29 @@
-- Telescope fuzzy finder configuration
return {
"nvim-telescope/telescope.nvim",
event = "VeryLazy",
branch = "0.1.x",
dependencies = {
"nvim-lua/plenary.nvim",
{ "nvim-tree/nvim-web-devicons" },
{ "nvim-telescope/telescope-live-grep-args.nvim" },
},
config = function()
require("telescope").setup({
defaults = vim.tbl_extend("force", require("telescope.themes").get_ivy(), {
path_display = { "smart" },
}),
})
pcall(require("telescope").load_extension("live_grep_args"))
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-g>", require("telescope").extensions.live_grep_args.live_grep_args)
vim.keymap.set(
"x",
"<C-g>",
"\"zy:lua require('telescope').extensions.live_grep_args.live_grep_args(require('telescope.themes').get_ivy({}))<cr><c-r>z"
)
vim.keymap.set("n", "<C-f>", builtin.find_files)
end,
}