86 lines
1.6 KiB
Lua
86 lines
1.6 KiB
Lua
return {
|
|
|
|
{
|
|
"folke/flash.nvim",
|
|
opts = {
|
|
modes = {
|
|
search = { enabled = false },
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"MagicDuck/grug-far.nvim",
|
|
keys = {
|
|
{
|
|
"<leader>sw",
|
|
function()
|
|
require('grug-far').open({ prefills = {
|
|
flags = '-w',
|
|
search = vim.fn.expand("<cword>"),
|
|
}})
|
|
end,
|
|
desc = "Grug: word\\cursor",
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"Darazaki/indent-o-matic",
|
|
event = "LazyFile",
|
|
opts = { max_lines = 100 },
|
|
},
|
|
|
|
{
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
keys = {
|
|
{
|
|
"<leader>E",
|
|
function()
|
|
require("neo-tree.command").execute({action="show", reveal=true})
|
|
end,
|
|
desc = "NeoTree: reveal file",
|
|
},
|
|
},
|
|
opts = {
|
|
event_handlers = {
|
|
{
|
|
event = "file_opened",
|
|
handler = function() --auto close
|
|
require("neo-tree.command").execute({ action = "close" })
|
|
end,
|
|
},
|
|
},
|
|
filesystem = {
|
|
bind_to_cwd = false,
|
|
follow_current_file = {
|
|
enabled = false,
|
|
leave_dirs_open = true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"debugloop/telescope-undo.nvim",
|
|
dependencies = {
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
},
|
|
},
|
|
keys = {
|
|
{ "<leader>uu", "<cmd>Telescope undo<cr>", desc = "Telescope undo" },
|
|
},
|
|
opts = {
|
|
extensions = {
|
|
undo = { use_delta = true },
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("telescope").setup(opts)
|
|
require("telescope").load_extension("undo")
|
|
end,
|
|
},
|
|
}
|