forked from axieax/urlview.nvim
/
default.lua
26 lines (25 loc) 路 1.01 KB
/
default.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local default_config = {
-- 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",
},
}
return default_config