add urlview plugin
This commit is contained in:
parent
d14757cd4d
commit
9375eae25c
@ -1,34 +1,29 @@
|
|||||||
return {
|
return {
|
||||||
'glepnir/dashboard-nvim',
|
'glepnir/dashboard-nvim',
|
||||||
event = 'VimEnter',
|
event = 'VimEnter',
|
||||||
theme = 'hyper',
|
theme = 'doom',
|
||||||
config = {
|
config = {
|
||||||
week_header = {
|
header = {}, --your header
|
||||||
enable = true,
|
center = {
|
||||||
},
|
|
||||||
shortcut = {
|
|
||||||
{ desc = ' Update', group = '@property', action = 'Lazy update', key = 'u' },
|
|
||||||
{
|
{
|
||||||
icon = ' ',
|
icon = ' ',
|
||||||
icon_hl = '@variable',
|
icon_hl = 'Title',
|
||||||
desc = 'Files',
|
desc = 'Find File ',
|
||||||
group = 'Label',
|
desc_hl = 'String',
|
||||||
action = 'Telescope find_files',
|
key = 'b',
|
||||||
|
keymap = 'SPC f f',
|
||||||
|
key_hl = 'Number',
|
||||||
|
action = 'lua print(2)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon = ' ',
|
||||||
|
desc = 'Find Dotfiles',
|
||||||
key = 'f',
|
key = 'f',
|
||||||
},
|
keymap = 'SPC f d',
|
||||||
{
|
action = 'lua print(3)'
|
||||||
desc = ' Apps',
|
|
||||||
group = 'DiagnosticHint',
|
|
||||||
action = 'Telescope app',
|
|
||||||
key = 'a',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
desc = ' dotfiles',
|
|
||||||
group = 'Number',
|
|
||||||
action = 'Telescope dotfiles',
|
|
||||||
key = 'd',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
footer = {} --your footer
|
||||||
},
|
},
|
||||||
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
|
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ return {
|
|||||||
{
|
{
|
||||||
'mbbill/undotree',
|
'mbbill/undotree',
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>U", "<Cmd>UndotreeToggle<CR>", desc = "Undotree Toggle" },
|
{ "<leader>ut", "<Cmd>UndotreeToggle<CR>", desc = "Undotree Toggle" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -39,5 +39,39 @@ return {
|
|||||||
-- end,
|
-- end,
|
||||||
}
|
}
|
||||||
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…
x
Reference in New Issue
Block a user