Support for document links for neovim 0.9+.
The default behaviour of gx is described in the neovim help as:
Opens the current filepath or URL (decided by
<cfile>
, 'isfname') at cursor using the system default handler, by calling vim.ui.open().
This plugin extends this behaviour to support LSP document links.
An LSP server which supports textDocument/documentLink
.
Call setup
to initialise the plugin:
local lsplinks = require("lsplinks")
lsplinks.setup()
vim.keymap.set("n", "gx", lsplinks.gx)
{
"icholy/lsplinks.nvim",
config = function()
local lsplinks = require("lsplinks")
lsplinks.setup()
vim.keymap.set("n", "gx", lsplinks.gx)
end
}
lsplinks.setup({
highlight = true,
hl_group = "Underlined",
})
Jump to $ref
links in swagger/openapi files.
Open https://pkg.go.dev from your go.mod
or import statements.