Skip to content

Commit

Permalink
misc: remove trailing whitespaces (nix-community#121)
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
  • Loading branch information
GaetanLepage and pta2002 authored Jan 21, 2023
1 parent 1022eae commit 3c918cf
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
};
legacyPackages = rec {
makeNixvimWithModule = import ./wrappers/standalone.nix pkgs modules;
makeNixvim = configuration: makeNixvimWithModule {
makeNixvim = configuration: makeNixvimWithModule {
module = {
config = configuration;
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/bufferlines/bufferline.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ in
};
indicatorIcon = mkOption {
type = types.nullOr types.str;
description = "The Icon shown as a indicator for buffer. Changing it is NOT recommended,
description = "The Icon shown as a indicator for buffer. Changing it is NOT recommended,
this is intended to be an escape hatch for people who cannot bear it for whatever reason.";
default = null;
};
Expand Down
10 changes: 5 additions & 5 deletions plugins/nvim-lsp/basic-servers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ let
type = types.nullOr (types.listOf types.str);
default = null;
description = ''
An array of paths (absolute or relative to each workspace folder) that should be
An array of paths (absolute or relative to each workspace folder) that should be
excluded from analysis.
'';
};
enableSdkFormatter = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
When set to false, prevents registration (or unregisters) the SDK formatter. When set
When set to false, prevents registration (or unregisters) the SDK formatter. When set
to true or not supplied, will register/reregister the SDK formatter
'';
};
lineLength = mkOption {
type = types.nullOr types.int;
default = null;
description = ''
The number of characters the formatter should wrap code at. If unspecified, code will
The number of characters the formatter should wrap code at. If unspecified, code will
be wrapped at 80 characters.
'';
};
Expand All @@ -59,7 +59,7 @@ let
type = types.nullOr types.bool;
default = true;
description = ''
Whether to generate diagnostics for TODO comments. If unspecified, diagnostics will not
Whether to generate diagnostics for TODO comments. If unspecified, diagnostics will not
be generated.
'';
};
Expand Down Expand Up @@ -103,7 +103,7 @@ let
type = types.nullOr types.bool;
default = null;
description = ''
Whether to include symbols from dependencies and Dart/Flutter SDKs in Workspace Symbol
Whether to include symbols from dependencies and Dart/Flutter SDKs in Workspace Symbol
results. If not set, defaults to true.
'';
};
Expand Down
3 changes: 2 additions & 1 deletion plugins/nvim-lsp/lspsaga.nix
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ in
in notEmpty keys;
};
in mkIf cfg.enable {

extraPlugins = [ cfg.package ];

extraConfigLua = ''
local saga = require 'lspsaga'
Expand Down
2 changes: 1 addition & 1 deletion plugins/snippets/luasnip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in
}
]
# generates:
#
#
# require("luasnip.loaders.from_vscode").lazy_load({})
# require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}})
#
Expand Down
2 changes: 1 addition & 1 deletion plugins/telescope/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ in
let $BAT_THEME = '${cfg.highlightTheme}'
'';

extraConfigLua = let
extraConfigLua = let
options = {
extensions = cfg.extensionConfig;
defaults = cfg.defaults;
Expand Down
2 changes: 1 addition & 1 deletion plugins/telescope/frecency.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }:
with lib;
let
let
cfg = config.plugins.telescope.extensions.frecency;
in
{
Expand Down
4 changes: 2 additions & 2 deletions plugins/telescope/fzf-native.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }:
with lib;
let
let
cfg = config.plugins.telescope.extensions.fzf-native;
in
{
Expand Down Expand Up @@ -34,7 +34,7 @@ in
};
};

config = let
config = let
configuration = {
fuzzy = cfg.fuzzy;
override_generic_sorter = cfg.overrideGenericSorter;
Expand Down
8 changes: 4 additions & 4 deletions plugins/utils/magma-nvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ in {
package = mkOption {
type = types.nullOr types.package;
default = null;
example =
example =
"package = pkgs.fetchFromGitHub {
owner = \"WhiteBlackGoose\";
repo = \"magma-nvim-goose\";
rev = version;
sha256 = \"sha256-IaslJK1F2BxTvZzKGH9OKOl2RICi4d4rSgjliAIAqK4=\";} ";


};

};
};
config = mkIf cfg.enable {
extraPlugins = [ (
if cfg.package != null then plugins.magma-nvim.override {src = cfg.package;} else plugins.magma-nvim
extraPlugins = [ (
if cfg.package != null then plugins.magma-nvim.override {src = cfg.package;} else plugins.magma-nvim
)];


Expand Down

0 comments on commit 3c918cf

Please sign in to comment.