mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
misc: remove trailing whitespaces (#121)
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
This commit is contained in:
parent
1022eae161
commit
3c918cfc92
9 changed files with 18 additions and 17 deletions
|
@ -42,7 +42,7 @@
|
||||||
};
|
};
|
||||||
legacyPackages = rec {
|
legacyPackages = rec {
|
||||||
makeNixvimWithModule = import ./wrappers/standalone.nix pkgs modules;
|
makeNixvimWithModule = import ./wrappers/standalone.nix pkgs modules;
|
||||||
makeNixvim = configuration: makeNixvimWithModule {
|
makeNixvim = configuration: makeNixvimWithModule {
|
||||||
module = {
|
module = {
|
||||||
config = configuration;
|
config = configuration;
|
||||||
};
|
};
|
||||||
|
|
|
@ -58,7 +58,7 @@ in
|
||||||
};
|
};
|
||||||
indicatorIcon = mkOption {
|
indicatorIcon = mkOption {
|
||||||
type = types.nullOr types.str;
|
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.";
|
this is intended to be an escape hatch for people who cannot bear it for whatever reason.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,7 +28,7 @@ let
|
||||||
type = types.nullOr (types.listOf types.str);
|
type = types.nullOr (types.listOf types.str);
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
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.
|
excluded from analysis.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -36,7 +36,7 @@ let
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
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
|
to true or not supplied, will register/reregister the SDK formatter
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ let
|
||||||
type = types.nullOr types.int;
|
type = types.nullOr types.int;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
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.
|
be wrapped at 80 characters.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -59,7 +59,7 @@ let
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
description = ''
|
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.
|
be generated.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -103,7 +103,7 @@ let
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
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.
|
results. If not set, defaults to true.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -201,8 +201,9 @@ in
|
||||||
in notEmpty keys;
|
in notEmpty keys;
|
||||||
};
|
};
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
|
|
||||||
extraPlugins = [ cfg.package ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
local saga = require 'lspsaga'
|
local saga = require 'lspsaga'
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ in
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
# generates:
|
# generates:
|
||||||
#
|
#
|
||||||
# require("luasnip.loaders.from_vscode").lazy_load({})
|
# require("luasnip.loaders.from_vscode").lazy_load({})
|
||||||
# require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}})
|
# require("luasnip.loaders.from_vscode").lazy_load({['paths'] = {'/nix/store/.../path/to/snippets'}})
|
||||||
#
|
#
|
||||||
|
|
|
@ -68,7 +68,7 @@ in
|
||||||
let $BAT_THEME = '${cfg.highlightTheme}'
|
let $BAT_THEME = '${cfg.highlightTheme}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraConfigLua = let
|
extraConfigLua = let
|
||||||
options = {
|
options = {
|
||||||
extensions = cfg.extensionConfig;
|
extensions = cfg.extensionConfig;
|
||||||
defaults = cfg.defaults;
|
defaults = cfg.defaults;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.plugins.telescope.extensions.frecency;
|
cfg = config.plugins.telescope.extensions.frecency;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.plugins.telescope.extensions.fzf-native;
|
cfg = config.plugins.telescope.extensions.fzf-native;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
configuration = {
|
configuration = {
|
||||||
fuzzy = cfg.fuzzy;
|
fuzzy = cfg.fuzzy;
|
||||||
override_generic_sorter = cfg.overrideGenericSorter;
|
override_generic_sorter = cfg.overrideGenericSorter;
|
||||||
|
|
|
@ -73,21 +73,21 @@ in {
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.nullOr types.package;
|
type = types.nullOr types.package;
|
||||||
default = null;
|
default = null;
|
||||||
example =
|
example =
|
||||||
"package = pkgs.fetchFromGitHub {
|
"package = pkgs.fetchFromGitHub {
|
||||||
owner = \"WhiteBlackGoose\";
|
owner = \"WhiteBlackGoose\";
|
||||||
repo = \"magma-nvim-goose\";
|
repo = \"magma-nvim-goose\";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = \"sha256-IaslJK1F2BxTvZzKGH9OKOl2RICi4d4rSgjliAIAqK4=\";} ";
|
sha256 = \"sha256-IaslJK1F2BxTvZzKGH9OKOl2RICi4d4rSgjliAIAqK4=\";} ";
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
extraPlugins = [ (
|
extraPlugins = [ (
|
||||||
if cfg.package != null then plugins.magma-nvim.override {src = cfg.package;} else plugins.magma-nvim
|
if cfg.package != null then plugins.magma-nvim.override {src = cfg.package;} else plugins.magma-nvim
|
||||||
)];
|
)];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue