From fb158f7d41c9b4ee798e2459902e67492ae0fba4 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sun, 7 Apr 2024 00:20:53 +0200 Subject: [PATCH] [neovim] added gitsigns plugin --- nix/home/neovim/neovim.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/home/neovim/neovim.nix b/nix/home/neovim/neovim.nix index fae391a..c9598fa 100644 --- a/nix/home/neovim/neovim.nix +++ b/nix/home/neovim/neovim.nix @@ -76,6 +76,10 @@ -- load plugins + require("gitsigns").setup() + vim.keymap.set("n", "gp", ":Gitsigns preview_hunk", {}) + vim.keymap.set("n", "gb", ":Gitsigns toggle_current_line_blame", {}) + -- neo-tree require("neo-tree").setup({ filesystem = { @@ -148,6 +152,7 @@ # plugins plugins = with pkgs.vimPlugins; [ + gitsigns-nvim neo-tree-nvim nvim-treesitter telescope-nvim