58 lines
1.3 KiB
Lua
58 lines
1.3 KiB
Lua
return {
|
|
-- Fuzzy finder (files, text, symbols)
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
config = function()
|
|
local telescope = require("telescope")
|
|
telescope.setup({})
|
|
local map = vim.keymap.set
|
|
map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "Find files" })
|
|
map("n", "<leader>fg", "<cmd>Telescope live_grep<cr>", { desc = "Live grep" })
|
|
map("n", "<leader>fb", "<cmd>Telescope buffers<cr>", { desc = "Buffers" })
|
|
map("n", "<leader>fh", "<cmd>Telescope help_tags<cr>", { desc = "Help" })
|
|
end,
|
|
},
|
|
|
|
-- Git decorations in the gutter
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
config = function()
|
|
require("gitsigns").setup()
|
|
end,
|
|
},
|
|
|
|
-- “Press leader and see options” (amazing for beginners)
|
|
{
|
|
"folke/which-key.nvim",
|
|
config = function()
|
|
require("which-key").setup()
|
|
end,
|
|
},
|
|
|
|
-- Auto-close (), {}, "", etc.
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
config = function()
|
|
require("nvim-autopairs").setup()
|
|
end,
|
|
},
|
|
|
|
-- Comment toggling
|
|
{
|
|
"numToStr/Comment.nvim",
|
|
config = function()
|
|
require("Comment").setup()
|
|
end,
|
|
},
|
|
|
|
-- Indent guides
|
|
{
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
main = "ibl",
|
|
config = function()
|
|
require("ibl").setup()
|
|
end,
|
|
},
|
|
}
|