LazyVim/lua/plugins/editor.lua

81 lines
1.5 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()
2024-09-18 11:06:16 +02:00
require('grug-far').open({
prefills = {
flags = '-w',
search = vim.fn.expand("<cword>"),
},
startInInsertMode = false,
transient = true,
})
2024-09-11 14:34:25 +02:00
end,
desc = "Grug: word\\cursor",
},
},
2024-09-18 11:06:16 +02:00
opts = {
history = {
autoSave = {
enabled = false, -- trumps all other settings below
onBufDelete = false,
onReplace = true,
onSyncAll = true,
},
maxHistoryLines = 1000,
},
searchOnInsertLeave = true,
},
2024-09-11 14:34:25 +02:00
},
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()
2024-10-15 10:08:40 +02:00
require("neo-tree.command").execute({action="focus", 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
},
},
}