diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 77bd0f5..a6ecd43 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -144,6 +144,21 @@ M.fugitive = { } } +M.harpoon = { + plugin = true, + n = { + [""] = { function() require("harpoon.ui").nav_file(1) end, "Harpoon File 1" }, + [""] = { function() require("harpoon.ui").nav_file(2) end, "Harpoon File 2" }, + [""] = { function() require("harpoon.ui").nav_file(3) end, "Harpoon File 3" }, + [""] = { function() require("harpoon.ui").nav_file(4) end, "Harpoon File 4" }, + + [""] = { function() require("harpoon.ui").toggle_quick_menu() end, "Harpoon Toggle Quick Menu" }, + + ["a"] = { function() require("harpoon.mark").add_file() end, "Harpoon Add File" }, + + } +} + M.undotree = { plugin = true, n = { @@ -264,14 +279,14 @@ M.lspconfig = { ["[d"] = { function() - vim.diagnostic.goto_prev() + vim.diagnostic.goto_prev({ float = { border = "rounded" } }) end, "goto prev", }, ["]d"] = { function() - vim.diagnostic.goto_next() + vim.diagnostic.goto_next({ float = { border = "rounded" } }) end, "goto_next", }, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index e89d218..d07313f 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -69,6 +69,12 @@ local plugins = { end, }, + { "ThePrimeagen/harpoon", + init = function () + require("core.utils").load_mappings "harpoon" + end + }, + -- lsp stuff { "williamboman/mason.nvim",