mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 19:24:34 +02:00
plugins/linediff: init
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Add support for [linediff.vim](https://github.com/AndrewRadev/linediff.vim), a vim plugin to perform diffs on blocks of code. Closes #3520
This commit is contained in:
parent
86dae3585b
commit
30d8be8628
2 changed files with 49 additions and 0 deletions
16
plugins/by-name/linediff/default.nix
Normal file
16
plugins/by-name/linediff/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
name = "linediff";
|
||||||
|
packPathName = "linediff.vim";
|
||||||
|
package = "linediff-vim";
|
||||||
|
|
||||||
|
globalPrefix = "linediff_";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
modify_statusline = 0;
|
||||||
|
first_buffer_command = "topleft new";
|
||||||
|
second_buffer_command = "vertical new";
|
||||||
|
};
|
||||||
|
}
|
33
tests/test-sources/plugins/by-name/linediff/default.nix
Normal file
33
tests/test-sources/plugins/by-name/linediff/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.linediff.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.linediff = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
indent = 0;
|
||||||
|
buffer_type = "tempfile";
|
||||||
|
first_buffer_command = "tabnew";
|
||||||
|
further_buffer_command = "rightbelow vertical new";
|
||||||
|
diffopt = "builtin";
|
||||||
|
modify_statusline = 0;
|
||||||
|
sign_highlight_group = "Search";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.linediff = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
modify_statusline = 0;
|
||||||
|
first_buffer_command = "topleft new";
|
||||||
|
second_buffer_command = "vertical new";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue