Add gitsigns plugin

This commit is contained in:
Isshi0417 2024-07-19 15:05:01 +09:00
parent 3cf5918261
commit 9a55348496
3 changed files with 18 additions and 2 deletions

View File

@ -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
'';

View File

@ -7,5 +7,6 @@
./treesitter.nix
./telescope.nix
./lazygit.nix
./conform.nix
];
}

View File

@ -0,0 +1,16 @@
{ ... }:
{
programs.nixvim.plugins.gitsigns = {
enable = true;
settings = {
signs = {
add = { text = "+"; };
change = { text = "~"; };
delete = { text = "_"; };
topdelete = { text = ""; };
changedelete = { text = "~"; };
};
};
};
}