Skip to content

Commit

Permalink
💫 add jumplist modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedani committed Nov 1, 2022
1 parent 004c226 commit 6be2fb2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
15 changes: 15 additions & 0 deletions lua/packer/config/portal.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lua/packer/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion lua/packer/settings/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ M.mappings = {
"Checkout commit(for current file)",
},
},

o = {
name = "+ Portal Jumplist",
o = { "<cmd>lua require('portal').jump_backward()<cr>", "Jump backward" },
i = { "<cmd>lua require('portal').jump_forward()<cr>", "Jump forward" },
m = { "<cmd>lua require('portal.mark').toggle()<cr>", "marks jump list" },
},
m = {
name = "+ Markdown Tools",
t = { "<cmd>Glow<cr>", "Preview in terminal directly" },
Expand Down

0 comments on commit 6be2fb2

Please sign in to comment.