Something went wrong. Try again.
Neovim config
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869local key = require("utils.map")local keyopts = key.new_opts
return { "nvim-lua/plenary.nvim",
{ "echasnovski/mini.surround", keys = { "s", { "S", mode = "x" } }, config = function(plugin) require(plugin.name).setup({ silent = true, highlight_duration = 100, search_method = "cover_or_next", }) vim.keymap.set("x", "S", [[:lua MiniSurround.add("visual")<CR>]], { silent = true }) end, },
{ "stevearc/oil.nvim", init = function(plugin) local arg = vim.fn.argv(0) if vim.fn.isdirectory(arg) > 0 then LAZYLOAD(plugin.name) end end, keys = { "-", "\\", "<leader>o" }, config = function() require("plugin.config.oil").setup() end, },
{ "ThePrimeagen/harpoon", dependencies = "nvim-lua/plenary.nvim", branch = "harpoon2", lazy = false, -- keys = "<leader>m", config = function() local harpoon = require("harpoon") harpoon:setup() --stylua: ignore key.nmap({ { "<localleader>ma", function() harpoon:list():add() end }, { "<localleader>mm", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end }, { "<localleader><C-h>", function() harpoon:list():select(1) end }, { "<localleader><C-j>", function() harpoon:list():select(2) end }, { "<localleader><C-k>", function() harpoon:list():select(3) end }, { "<localleader><C-l>", function() harpoon:list():select(4) end }, }) end, }, { "mbbill/undotree", keys = { "<leader>uu" }, config = function() local g = vim.g g.undotree_HelpLine = 0 g.undotree_WindowLayout = 2 g.undotree_SplitWidth = 45 g.undotree_SetFocusWhenToggle = 1 key.nmap({ { "<leader>uu", "<cmd>UndotreeToggle<CR>" }, }) end, }}