Skip to content

Commit

Permalink
treewide: fix typos (nix-community#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
loicreynier authored Mar 7, 2024
1 parent e9564ac commit 233feeb
Show file tree
Hide file tree
Showing 50 changed files with 123 additions and 96 deletions.
1 change: 1 addition & 0 deletions flake-modules/dev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"plugins/lsp/language-servers/rust-analyzer-config.nix"
];
};
typos.enable = true;
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion flake-modules/dev/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
doc_derivation=$(${nix} build .#docs --no-link --print-out-paths)
echo -e "\n=> Documentation succesfully built ('$doc_derivation')"
echo -e "\n=> Documentation successfully built ('$doc_derivation')"
port=8000
echo -e "\n=> Now open your browser and navigate to 'localhost:$port'\n"
Expand Down
4 changes: 2 additions & 2 deletions flake-modules/templates.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
in
result;

templateFlakeOuputs = callFlake {
templateFlakeOutputs = callFlake {
inputs = {
inherit (inputs) flake-parts nixpkgs;
nixvim = self;
Expand All @@ -47,7 +47,7 @@
sourceInfo = {};
};

templateChecks = templateFlakeOuputs.checks.${system};
templateChecks = templateFlakeOutputs.checks.${system};
in
lib.concatMapAttrs
(
Expand Down
2 changes: 1 addition & 1 deletion lib/vim-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ with lib; {
{
inherit extraPackages;
globals = mapAttrs' (n: nameValuePair (globalPrefix + n)) globals;
# does this evaluate package? it would not be desired to evaluate pacakge if we use another package.
# does this evaluate package? it would not be desired to evaluate package if we use another package.
extraPlugins = extraPlugins ++ optional (defaultPackage != null) cfg.package;
}
(extraConfig cfg)
Expand Down
4 changes: 2 additions & 2 deletions plugins/TEMPLATE.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {

maintainers = [lib.maintainers.MyName]; # TODO replace with your name

# Optionnally, explicitly declare some options. You don't have to.
# Optionally, explicitly declare some options. You don't have to.
settingsOptions = {
foo = helpers.defaultNullOpts.mkUnsignedInt 97 ''
The best birth year.
Expand All @@ -23,7 +23,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
'';
};

# Optionnally, provide an example for the `settings` option.
# Optionally, provide an example for the `settings` option.
settingsExample = {
foo = 42;
bar.__raw = "function() print('hello') end";
Expand Down
8 changes: 4 additions & 4 deletions plugins/bufferlines/barbar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ with lib; let
};

separator = {
left = helpers.defaultNullOpts.mkStr "▎" "Left seperator";
right = helpers.defaultNullOpts.mkStr "" "Right seperator";
left = helpers.defaultNullOpts.mkStr "▎" "Left separator";
right = helpers.defaultNullOpts.mkStr "" "Right separator";
};
};

Expand Down Expand Up @@ -186,7 +186,7 @@ in {
"asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP"
''
New buffer letters are assigned in this order.
This order is optimal for the qwerty keyboard layout but might need adjustement for other layouts.
This order is optimal for the qwerty keyboard layout but might need adjustment for other layouts.
'';

sidebarFiletypes =
Expand Down Expand Up @@ -251,7 +251,7 @@ in {
diagnostics =
/*
Because the keys of this lua table are not strings (but
`vim.diagnostic.severity.XXXX`), we have to manualy build a raw lua string here.
`vim.diagnostic.severity.XXXX`), we have to manually build a raw lua string here.
*/
let
setIcons = filterAttrs (n: v: v != null) cfg.icons.diagnostics;
Expand Down
2 changes: 1 addition & 1 deletion plugins/colorschemes/base16.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ in {
);
})
''
Optionaly, you can provide a table specifying your colors to the setup function.
Optionally, you can provide a table specifying your colors to the setup function.
Example:
```nix
Expand Down
2 changes: 1 addition & 1 deletion plugins/colorschemes/nord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ helpers.vim-plugin.mkVimPlugin config {
'';

borders = helpers.defaultNullOpts.mkBool false ''
Enable the border between verticaly split windows visable.
Enable the border between vertically split windows.
'';

disable_background = helpers.defaultNullOpts.mkBool false ''
Expand Down
2 changes: 1 addition & 1 deletion plugins/completion/cmp/sources/cmp-tabby.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
helpers.neovim-plugin.extraOptionsOptions
// {
host = helpers.defaultNullOpts.mkStr "http://localhost:5000" ''
The adress of the tabby host server.
The address of the tabby host server.
'';

maxLines = helpers.defaultNullOpts.mkUnsignedInt 100 ''
Expand Down
2 changes: 1 addition & 1 deletion plugins/completion/copilot-lua.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ in {
https://github.com/zbirenbaum/copilot.lua/blob/master/SettingsOpts.md.
These options are specific to the copilot lsp and can be used to customize its behavior.
Ensure that the `name` field is not overriden as is is used for efficiency reasons in
Ensure that the `name` field is not overridden as is is used for efficiency reasons in
numerous checks to verify copilot is actually running.
See `:h vim.lsp.start_client` for list of options.
Expand Down
2 changes: 1 addition & 1 deletion plugins/dap/dapHelpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ with lib; rec {
request = mkOption {
type = types.enum ["attach" "launch"];
description = ''
Indicates whether the debug adapter should launch a debugee or attach to one that is already running.
Indicates whether the debug adapter should launch a debuggee or attach to one that is already running.
'';
};

Expand Down
4 changes: 2 additions & 2 deletions plugins/dap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ in
};

configurations = helpers.mkNullOrOption (with types; attrsOf (listOf dapHelpers.configurationOption)) ''
Debugee configurations, see `:h dap-configuration` for more info.
Debuggee configurations, see `:h dap-configuration` for more info.
'';

signs = helpers.mkCompositeOption "Signs for dap." {
Expand All @@ -40,7 +40,7 @@ in

dapLogPoint = mkSignOption "L" "Sign for log points.";

dapStopped = mkSignOption "→" "Sign to indicate where the debugee is stopped.";
dapStopped = mkSignOption "→" "Sign to indicate where the debuggee is stopped.";

dapBreakpointRejected = mkSignOption "R" "Sign to indicate breakpoints rejected by the debug adapter.";
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/filetrees/neo-tree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
(
mkRemovedOptionModule
(basePluginPath ++ ["sourceSelector" "tabLabels"])
"Use `plugins.neo-tree.sourceSelector.sources` to achieve the same functionnality."
"Use `plugins.neo-tree.sourceSelector.sources` to achieve the same functionality."
)
(
mkRemovedOptionModule
Expand Down
2 changes: 1 addition & 1 deletion plugins/git/diffview.nix
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ in {
'';

s = mkNullStr ''
Look for differences that change the number of occurences of
Look for differences that change the number of occurrences of
the specified pattern (extended regular expression) in a
file.
'';
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/clangd-extensions.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ with lib; let
borderOpt = helpers.defaultNullOpts.mkBorder "none" "clangd-extensions" "";
in {
# All of those warnings were introduced on 08/22/2023.
# TODO: Remove them in ~2 monts (Oct. 2023).
# TODO: Remove them in ~2 months (Oct. 2023).
imports =
[
(
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/lean.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ in {

stderr = {
enable = helpers.defaultNullOpts.mkBool true ''
Redirect Lean's stderr messages somehwere (to a buffer by default).
Redirect Lean's stderr messages somewhere (to a buffer by default).
'';

height = helpers.defaultNullOpts.mkPositiveInt 5 "Height of the window.";
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/markdown-preview.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ with helpers.vim-plugin;
Scroll type:
- "middle": The cursor position is always shown at the middle of the preview page.
- "top": The vim top viewport is always shown at the top of the preview page.
- "relative": The cursor position is always shown at the relative positon of the preview page.
- "relative": The cursor position is always shown at the relative position of the preview page.
'';

hide_yaml_meta = helpers.defaultNullOpts.mkBool true ''
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/rustaceanvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ in {
'';

pipe = helpers.mkNullOrStr ''
Overide the pipe symbol in the shell command.
Override the pipe symbol in the shell command.
Useful if using a shell that is not supported by this plugin.
'';
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/sniprun.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in {
mkList ''["Classic" "VirtualTextOk"]''
''
You can combo different display modes as desired and with the 'Ok' or 'Err' suffix to filter
only sucessful runs (or errored-out runs respectively)
only successful runs (or errored-out runs respectively)
Example:
```nix
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/treesitter/treesitter-refactor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ with lib; {
description = ''
go to the definition of the symbol under the cursor or use vim.lsp.buf.definition if
the symbol can not be resolved. You can use your own fallback function if create a
mapping fo `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>`.
mapping for `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>`.
'';
};
listDefinitions = mkOption {
Expand Down
4 changes: 2 additions & 2 deletions plugins/languages/treesitter/treesitter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ in {
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
''
+ (optionalString (cfg.languageRegister != {}) ''
__parserFiltypeMappings = ${helpers.toLuaObject cfg.languageRegister}
__parserFiletypeMappings = ${helpers.toLuaObject cfg.languageRegister}
for parser_name, ft in pairs(__parserFiltypeMappings) do
for parser_name, ft in pairs(__parserFiletypeMappings) do
require('vim.treesitter.language').register(parser_name, ft)
end
'');
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/treesitter/ts-context-commentstring.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ with lib; {
type = types.bool;
default = true;
description = ''
Whethter to skip backwards compatibility routines and speed up loading.
Whether to skip backwards compatibility routines and speed up loading.
'';
example = false;
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/languages/typescript-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ in {
"WARNING: Experimental feature also in VSCode, disabled by default because it might impact server performance.";

disableMemberCodeLens = helpers.defaultNullOpts.mkBool true ''
By default code lenses are displayed on all referencable values. Display less by removing member references from lenses.
By default code lenses are displayed on all referenceable values. Display less by removing member references from lenses.
'';

jsxCloseTag = {
Expand Down
2 changes: 1 addition & 1 deletion plugins/lsp/language-servers/nixd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ in {
options = {
enable = helpers.defaultNullOpts.mkBool true ''
Enable option completion task.
If you are writting a package, disable this
If you are writing a package, disable this
'';

target = {
Expand Down
Loading

0 comments on commit 233feeb

Please sign in to comment.