neovim/lua/plugins/editor.lua
Devin Haska a68ad5ac1d
feat: config refresh
The goal of this commit was to break my config into smaller, logical
chunks. I was having a hard time remembering which file contained which
plugin config.

I also took the time to clean out some plugins I added but never used,
and add an old favourite (tpope/vim-surround).
2024-09-15 20:06:33 -07:00

30 lines
1.1 KiB
Lua

return {
{
"folke/which-key.nvim",
event = "VeryLazy",
init = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {},
},
{
"folke/flash.nvim",
event = "VeryLazy",
opts = {},
-- stylua: ignore
keys = {
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
},
},
{
"MeanderingProgrammer/markdown.nvim",
main = "render-markdown",
opts = {},
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
},
}