From e1b1bed2c4e20610843b86546ed4d6c772b2d655 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 11 Feb 2024 00:24:07 +0530 Subject: [PATCH] install gitsigns --- after/plugin/gitsigns.lua | 9 +++++++++ lua/plugins.lua | 1 + 2 files changed, 10 insertions(+) create mode 100644 after/plugin/gitsigns.lua diff --git a/after/plugin/gitsigns.lua b/after/plugin/gitsigns.lua new file mode 100644 index 0000000..1a85e0c --- /dev/null +++ b/after/plugin/gitsigns.lua @@ -0,0 +1,9 @@ +require('gitsigns').setup{ + current_line_blame = true, + current_line_blame_opts = { + virt_text_pos = 'right_align', + delay = 0 + }, + current_line_blame_formatter = ', - ' +} + diff --git a/lua/plugins.lua b/lua/plugins.lua index 98286aa..7102800 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,5 +1,6 @@ return require('packer').startup(function(use) use 'wbthomason/packer.nvim' + use 'lewis6991/gitsigns.nvim' use { 'Mofiqul/dracula.nvim',