mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
null-ls: Add gitsigns code action (#100)
As this is not an external command but a plugin it adds the gitsigns plugin if enabled.
This commit is contained in:
parent
30fc8b4f43
commit
125ed74a42
1 changed files with 10 additions and 1 deletions
|
@ -2,7 +2,9 @@
|
|||
let
|
||||
helpers = import ./helpers.nix args;
|
||||
serverData = {
|
||||
code_actions = { };
|
||||
code_actions = {
|
||||
gitsigns = { };
|
||||
};
|
||||
completion = { };
|
||||
diagnostics = {
|
||||
flake8 = {
|
||||
|
@ -54,4 +56,11 @@ let
|
|||
in
|
||||
{
|
||||
imports = lib.lists.map (helpers.mkServer) dataFlattened;
|
||||
|
||||
config = let
|
||||
cfg = config.plugins.null-ls;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
plugins.gitsigns.enable = lib.mkIf (cfg.sources.code_actions.gitsigns.enable) true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue