Add gitsigns plugin
This commit is contained in:
parent
3cf5918261
commit
9a55348496
@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
@ -14,7 +14,6 @@
|
|||||||
local disable_filetypes = { c = true, cpp = true }
|
local disable_filetypes = { c = true, cpp = true }
|
||||||
return {
|
return {
|
||||||
timeout_ms = 500
|
timeout_ms = 500
|
||||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype]
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|||||||
@ -7,5 +7,6 @@
|
|||||||
./treesitter.nix
|
./treesitter.nix
|
||||||
./telescope.nix
|
./telescope.nix
|
||||||
./lazygit.nix
|
./lazygit.nix
|
||||||
|
./conform.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
16
modules/home-manager/nixvim/plugins/gitsigns.nix
Normal file
16
modules/home-manager/nixvim/plugins/gitsigns.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.nixvim.plugins.gitsigns = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
signs = {
|
||||||
|
add = { text = "+"; };
|
||||||
|
change = { text = "~"; };
|
||||||
|
delete = { text = "_"; };
|
||||||
|
topdelete = { text = "‾"; };
|
||||||
|
changedelete = { text = "~"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user