add urlview plugin
This commit is contained in:
parent
d14757cd4d
commit
9375eae25c
2 changed files with 54 additions and 25 deletions
|
|
@ -6,7 +6,7 @@ return {
|
|||
{
|
||||
'mbbill/undotree',
|
||||
keys = {
|
||||
{ "<leader>U", "<Cmd>UndotreeToggle<CR>", desc = "Undotree Toggle" },
|
||||
{ "<leader>ut", "<Cmd>UndotreeToggle<CR>", desc = "Undotree Toggle" },
|
||||
},
|
||||
},
|
||||
|
||||
|
|
@ -39,5 +39,39 @@ return {
|
|||
-- end,
|
||||
}
|
||||
end,
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"axieax/urlview.nvim",
|
||||
config = function()
|
||||
require("urlview").setup({
|
||||
-- Prompt title (`<context> <default_title>`, e.g. `Buffer Links:`)
|
||||
default_title = "Links:",
|
||||
-- Default picker to display links with
|
||||
-- Options: "native" (vim.ui.select) or "telescope"
|
||||
default_picker = "native",
|
||||
-- Set the default protocol for us to prefix URLs with if they don't start with http/https
|
||||
default_prefix = "https://",
|
||||
-- Command or method to open links with
|
||||
-- Options: "netrw", "system" (default OS browser), "clipboard"; or "firefox", "chromium" etc.
|
||||
-- By default, this is "netrw", or "system" if netrw is disabled
|
||||
default_action = "netrw",
|
||||
-- Ensure links shown in the picker are unique (no duplicates)
|
||||
unique = true,
|
||||
-- Ensure links shown in the picker are sorted alphabetically
|
||||
sorted = true,
|
||||
-- Minimum log level (recommended at least `vim.log.levels.WARN` for error detection warnings)
|
||||
log_level_min = vim.log.levels.INFO,
|
||||
-- Keymaps for jumping to previous / next URL in buffer
|
||||
jump = {
|
||||
prev = "[u",
|
||||
next = "]u",
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
keys = {
|
||||
{ "<leader>ul", "<Cmd>UrlView<CR>", desc = "View buffer URLs" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue