LazyVim/lua/plugins/editor.lua

86 lines
1.6 KiB
Lua
Raw Normal View History

return {
2024-03-26 18:10:56 +01:00
{
"folke/flash.nvim",
opts = {
modes = {
search = { enabled = false },
},
},
},
2024-09-11 14:34:25 +02:00
{
"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",
},
},
},
2023-11-09 11:26:21 +01:00
{
"Darazaki/indent-o-matic",
event = "LazyFile",
opts = { max_lines = 100 },
},
2024-09-02 14:42:19 +02:00
{
"nvim-neo-tree/neo-tree.nvim",
keys = {
{
"<leader>E",
function()
require("neo-tree.command").execute({action="show", reveal=true})
end,
desc = "NeoTree: reveal file",
},
},
2024-09-02 14:42:19 +02:00
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,
},
},
2024-09-02 14:42:19 +02:00
},
},
{
2023-12-01 14:05:10 +01:00
"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,
},
}