View current file on configured git remote
Find a file
2024-12-09 20:33:11 +01:00
lua/source-link Add files 2024-12-09 20:26:16 +01:00
LICENSE Initial commit 2024-12-09 20:23:57 +01:00
README.md Update README 2024-12-09 20:33:11 +01:00

source-link.lua

View the current line number of the current file on configured git remote.

Installation

Call setup from your neovim configuration file:

...
local source_link = require('source_link')

source_link.setup()
...

Optionally create a keybinding:

...
local opts = { noremap = true, silent = true }

vim.api.nvim_set_keymap('n', '<C-L>', '<cmd>:SourceOpen<CR>', opts)

Or call the command directly from Command mode: :SourceOpen.