diff --git a/README.md b/README.md index 4284ae1..bfa6080 100644 --- a/README.md +++ b/README.md @@ -633,6 +633,10 @@ Some of the plugins have a unique configuration, some of them just copied config 💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu. +- [`cbochs/portal.nvim`](https://github.com/cbochs/portal.nvim) for veiw jumplist in modal : + + Look at you, sailing through the [jumplist] majestically, like an eagle... piloting a blimp. + - [`copilot.vim`](https://github.com/github/copilot.vim) for AI code suggestion : GitHub Copilot is an AI pair programmer which suggests line completions and entire function bodies as you type. diff --git a/lua/packer/config/portal.lua b/lua/packer/config/portal.lua new file mode 100644 index 0000000..23c0bab --- /dev/null +++ b/lua/packer/config/portal.lua @@ -0,0 +1,15 @@ +-- Description : Look at you, sailing through the [jumplist] majestically, like an eagle... piloting a blimp. +-- Link : https://github.com/cbochs/portal.nvim + +local M = { + "cbochs/portal.nvim", + config = function() + require("portal").setup({ + -- Your configuration goes here + -- Leave empty to use the default configuration + -- Please see the Configuration section below for more information + }) + end, +} + +return M diff --git a/lua/packer/plugins.lua b/lua/packer/plugins.lua index 6c26a6e..cff448d 100644 --- a/lua/packer/plugins.lua +++ b/lua/packer/plugins.lua @@ -65,6 +65,7 @@ return packer.startup(function(use) use(require("packer.config.bisquits")) use(require("packer.config.neoscroll")) use(require("packer.config.noice")) + use(require("packer.config.portal")) -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins diff --git a/lua/packer/settings/which-key.lua b/lua/packer/settings/which-key.lua index fca7e3d..417e785 100644 --- a/lua/packer/settings/which-key.lua +++ b/lua/packer/settings/which-key.lua @@ -154,7 +154,12 @@ M.mappings = { "Checkout commit(for current file)", }, }, - + o = { + name = "+ Portal Jumplist", + o = { "lua require('portal').jump_backward()", "Jump backward" }, + i = { "lua require('portal').jump_forward()", "Jump forward" }, + m = { "lua require('portal.mark').toggle()", "marks jump list" }, + }, m = { name = "+ Markdown Tools", t = { "Glow", "Preview in terminal directly" },