From 1b8a4094d0b5b85afc9f6d128b4c9772afee833a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Tue, 21 Mar 2023 16:00:47 +0100 Subject: [PATCH] common: add gitlinker --- lua/plugins/common.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/plugins/common.lua b/lua/plugins/common.lua index 85da808..8c5e17e 100644 --- a/lua/plugins/common.lua +++ b/lua/plugins/common.lua @@ -39,6 +39,18 @@ return { -- markdown preview using glow { "ellisonleao/glow.nvim", config = true, cmd = "Glow" }, + -- permanent links to fileranges + { 'ruifm/gitlinker.nvim', + config = function() + require('gitlinker').setup( + { + callbacks = { + ['git.aflabs.org'] = require('gitlinker.hosts').get_gitlab_type_url } + } + ) + end + }, + -- NOTE: Third, plugins that require some setup, but not enugh for separate file { -- Adds git releated signs to the gutter, as well as utilities for managing changes