mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 02:08:40 +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
|
let
|
||||||
helpers = import ./helpers.nix args;
|
helpers = import ./helpers.nix args;
|
||||||
serverData = {
|
serverData = {
|
||||||
code_actions = { };
|
code_actions = {
|
||||||
|
gitsigns = { };
|
||||||
|
};
|
||||||
completion = { };
|
completion = { };
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
flake8 = {
|
flake8 = {
|
||||||
|
@ -54,4 +56,11 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = lib.lists.map (helpers.mkServer) dataFlattened;
|
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