From e05014fb008e5239472f1ae5f3fc8e75fb4a1216 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 13 Jan 2023 14:48:51 +0100 Subject: [PATCH] misc: remove trailing whitespaces --- flake.nix | 2 +- plugins/bufferlines/bufferline.nix | 2 +- plugins/null-ls/servers.nix | 2 +- plugins/nvim-lsp/basic-servers.nix | 10 +++++----- plugins/nvim-lsp/lspsaga.nix | 2 +- plugins/snippets/luasnip/default.nix | 2 +- plugins/telescope/default.nix | 2 +- plugins/telescope/frecency.nix | 4 ++-- plugins/telescope/fzf-native.nix | 4 ++-- plugins/utils/magma-nvim.nix | 8 ++++---- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index ac6957c2..2bc7ae8c 100644 --- a/flake.nix +++ b/flake.nix @@ -42,7 +42,7 @@ }; legacyPackages = rec { makeNixvimWithModule = import ./wrappers/standalone.nix pkgs modules; - makeNixvim = configuration: makeNixvimWithModule { + makeNixvim = configuration: makeNixvimWithModule { module = { config = configuration; }; diff --git a/plugins/bufferlines/bufferline.nix b/plugins/bufferlines/bufferline.nix index eda4ce0f..0c99d464 100644 --- a/plugins/bufferlines/bufferline.nix +++ b/plugins/bufferlines/bufferline.nix @@ -53,7 +53,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; }; diff --git a/plugins/null-ls/servers.nix b/plugins/null-ls/servers.nix index da44c114..3c11e275 100644 --- a/plugins/null-ls/servers.nix +++ b/plugins/null-ls/servers.nix @@ -2,7 +2,7 @@ let helpers = import ./helpers.nix args; serverData = { - code_actions = { + code_actions = { gitsigns = { }; }; completion = { }; diff --git a/plugins/nvim-lsp/basic-servers.nix b/plugins/nvim-lsp/basic-servers.nix index f0a1235c..f5c0a234 100644 --- a/plugins/nvim-lsp/basic-servers.nix +++ b/plugins/nvim-lsp/basic-servers.nix @@ -27,7 +27,7 @@ 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. ''; }; @@ -35,7 +35,7 @@ let 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 ''; }; @@ -43,7 +43,7 @@ let 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. ''; }; @@ -58,7 +58,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. ''; }; @@ -102,7 +102,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. ''; }; diff --git a/plugins/nvim-lsp/lspsaga.nix b/plugins/nvim-lsp/lspsaga.nix index abd786b9..bb63910e 100644 --- a/plugins/nvim-lsp/lspsaga.nix +++ b/plugins/nvim-lsp/lspsaga.nix @@ -196,7 +196,7 @@ in }; in mkIf cfg.enable { extraPlugins = [ pkgs.vimPlugins.lspsaga-nvim ]; - + extraConfigLua = '' local saga = require 'lspsaga' diff --git a/plugins/snippets/luasnip/default.nix b/plugins/snippets/luasnip/default.nix index 66fcae81..8ec8c5e2 100644 --- a/plugins/snippets/luasnip/default.nix +++ b/plugins/snippets/luasnip/default.nix @@ -23,7 +23,7 @@ in } ] # generates: - # + # # require("luasnip.loaders.from_vscode").lazy_load({}) # require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}}) # diff --git a/plugins/telescope/default.nix b/plugins/telescope/default.nix index 46d1ba3a..ee562d4c 100644 --- a/plugins/telescope/default.nix +++ b/plugins/telescope/default.nix @@ -62,7 +62,7 @@ in let $BAT_THEME = '${cfg.highlightTheme}' ''; - extraConfigLua = let + extraConfigLua = let options = { extensions = cfg.extensionConfig; defaults = cfg.defaults; diff --git a/plugins/telescope/frecency.nix b/plugins/telescope/frecency.nix index 7b5b6bd2..2e960e54 100644 --- a/plugins/telescope/frecency.nix +++ b/plugins/telescope/frecency.nix @@ -1,6 +1,6 @@ { pkgs, config, lib, ... }: with lib; -let +let cfg = config.plugins.telescope.extensions.frecency; in { @@ -56,7 +56,7 @@ in }; in mkIf cfg.enable { extraPackages = [ pkgs.sqlite ]; - extraPlugins = with pkgs.vimPlugins; [ + extraPlugins = with pkgs.vimPlugins; [ telescope-frecency-nvim sqlite-lua ]; diff --git a/plugins/telescope/fzf-native.nix b/plugins/telescope/fzf-native.nix index 978cfe78..c3be8715 100644 --- a/plugins/telescope/fzf-native.nix +++ b/plugins/telescope/fzf-native.nix @@ -1,6 +1,6 @@ { pkgs, config, lib, ... }: with lib; -let +let cfg = config.plugins.telescope.extensions.fzf-native; in { @@ -28,7 +28,7 @@ in }; }; - config = let + config = let configuration = { fuzzy = cfg.fuzzy; override_generic_sorter = cfg.overrideGenericSorter; diff --git a/plugins/utils/magma-nvim.nix b/plugins/utils/magma-nvim.nix index 67fa1358..190a3c5f 100644 --- a/plugins/utils/magma-nvim.nix +++ b/plugins/utils/magma-nvim.nix @@ -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 )];