From 9a55348496584fb8f243d683fab81930160d2757 Mon Sep 17 00:00:00 2001 From: Isshi0417 Date: Fri, 19 Jul 2024 15:05:01 +0900 Subject: [PATCH] Add gitsigns plugin --- modules/home-manager/nixvim/plugins/conform.nix | 3 +-- modules/home-manager/nixvim/plugins/default.nix | 1 + modules/home-manager/nixvim/plugins/gitsigns.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 modules/home-manager/nixvim/plugins/gitsigns.nix diff --git a/modules/home-manager/nixvim/plugins/conform.nix b/modules/home-manager/nixvim/plugins/conform.nix index 7dbca91..05b337b 100644 --- a/modules/home-manager/nixvim/plugins/conform.nix +++ b/modules/home-manager/nixvim/plugins/conform.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { programs.nixvim = { @@ -14,7 +14,6 @@ local disable_filetypes = { c = true, cpp = true } return { timeout_ms = 500 - lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype] } end ''; diff --git a/modules/home-manager/nixvim/plugins/default.nix b/modules/home-manager/nixvim/plugins/default.nix index cb967a3..ac70d70 100644 --- a/modules/home-manager/nixvim/plugins/default.nix +++ b/modules/home-manager/nixvim/plugins/default.nix @@ -7,5 +7,6 @@ ./treesitter.nix ./telescope.nix ./lazygit.nix + ./conform.nix ]; } diff --git a/modules/home-manager/nixvim/plugins/gitsigns.nix b/modules/home-manager/nixvim/plugins/gitsigns.nix new file mode 100644 index 0000000..325b20d --- /dev/null +++ b/modules/home-manager/nixvim/plugins/gitsigns.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + programs.nixvim.plugins.gitsigns = { + enable = true; + settings = { + signs = { + add = { text = "+"; }; + change = { text = "~"; }; + delete = { text = "_"; }; + topdelete = { text = "‾"; }; + changedelete = { text = "~"; }; + }; + }; + }; +}