Skip to content

Commit 233feeb

Browse files
authored
treewide: fix typos (nix-community#1217)
1 parent e9564ac commit 233feeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+123
-96
lines changed

flake-modules/dev/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"plugins/lsp/language-servers/rust-analyzer-config.nix"
1717
];
1818
};
19+
typos.enable = true;
1920
};
2021
};
2122
};

flake-modules/dev/devshell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
5353
doc_derivation=$(${nix} build .#docs --no-link --print-out-paths)
5454
55-
echo -e "\n=> Documentation succesfully built ('$doc_derivation')"
55+
echo -e "\n=> Documentation successfully built ('$doc_derivation')"
5656
5757
port=8000
5858
echo -e "\n=> Now open your browser and navigate to 'localhost:$port'\n"

flake-modules/templates.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
in
3838
result;
3939

40-
templateFlakeOuputs = callFlake {
40+
templateFlakeOutputs = callFlake {
4141
inputs = {
4242
inherit (inputs) flake-parts nixpkgs;
4343
nixvim = self;
@@ -47,7 +47,7 @@
4747
sourceInfo = {};
4848
};
4949

50-
templateChecks = templateFlakeOuputs.checks.${system};
50+
templateChecks = templateFlakeOutputs.checks.${system};
5151
in
5252
lib.concatMapAttrs
5353
(

lib/vim-plugin.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ with lib; {
140140
{
141141
inherit extraPackages;
142142
globals = mapAttrs' (n: nameValuePair (globalPrefix + n)) globals;
143-
# does this evaluate package? it would not be desired to evaluate pacakge if we use another package.
143+
# does this evaluate package? it would not be desired to evaluate package if we use another package.
144144
extraPlugins = extraPlugins ++ optional (defaultPackage != null) cfg.package;
145145
}
146146
(extraConfig cfg)

plugins/TEMPLATE.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
1212

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

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

26-
# Optionnally, provide an example for the `settings` option.
26+
# Optionally, provide an example for the `settings` option.
2727
settingsExample = {
2828
foo = 42;
2929
bar.__raw = "function() print('hello') end";

plugins/bufferlines/barbar.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ with lib; let
4343
};
4444

4545
separator = {
46-
left = helpers.defaultNullOpts.mkStr "▎" "Left seperator";
47-
right = helpers.defaultNullOpts.mkStr "" "Right seperator";
46+
left = helpers.defaultNullOpts.mkStr "▎" "Left separator";
47+
right = helpers.defaultNullOpts.mkStr "" "Right separator";
4848
};
4949
};
5050

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

192192
sidebarFiletypes =
@@ -251,7 +251,7 @@ in {
251251
diagnostics =
252252
/*
253253
Because the keys of this lua table are not strings (but
254-
`vim.diagnostic.severity.XXXX`), we have to manualy build a raw lua string here.
254+
`vim.diagnostic.severity.XXXX`), we have to manually build a raw lua string here.
255255
*/
256256
let
257257
setIcons = filterAttrs (n: v: v != null) cfg.icons.diagnostics;

plugins/colorschemes/base16.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ in {
5555
);
5656
})
5757
''
58-
Optionaly, you can provide a table specifying your colors to the setup function.
58+
Optionally, you can provide a table specifying your colors to the setup function.
5959
6060
Example:
6161
```nix

plugins/colorschemes/nord.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ helpers.vim-plugin.mkVimPlugin config {
3232
'';
3333

3434
borders = helpers.defaultNullOpts.mkBool false ''
35-
Enable the border between verticaly split windows visable.
35+
Enable the border between vertically split windows.
3636
'';
3737

3838
disable_background = helpers.defaultNullOpts.mkBool false ''

plugins/completion/cmp/sources/cmp-tabby.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in {
1313
helpers.neovim-plugin.extraOptionsOptions
1414
// {
1515
host = helpers.defaultNullOpts.mkStr "http://localhost:5000" ''
16-
The adress of the tabby host server.
16+
The address of the tabby host server.
1717
'';
1818

1919
maxLines = helpers.defaultNullOpts.mkUnsignedInt 100 ''

plugins/completion/copilot-lua.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ in {
132132
https://github.com/zbirenbaum/copilot.lua/blob/master/SettingsOpts.md.
133133
These options are specific to the copilot lsp and can be used to customize its behavior.
134134
135-
Ensure that the `name` field is not overriden as is is used for efficiency reasons in
135+
Ensure that the `name` field is not overridden as is is used for efficiency reasons in
136136
numerous checks to verify copilot is actually running.
137137
138138
See `:h vim.lsp.start_client` for list of options.

plugins/dap/dapHelpers.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ with lib; rec {
102102
request = mkOption {
103103
type = types.enum ["attach" "launch"];
104104
description = ''
105-
Indicates whether the debug adapter should launch a debugee or attach to one that is already running.
105+
Indicates whether the debug adapter should launch a debuggee or attach to one that is already running.
106106
'';
107107
};
108108

plugins/dap/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ in
3030
};
3131

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

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

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

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

4545
dapBreakpointRejected = mkSignOption "R" "Sign to indicate breakpoints rejected by the debug adapter.";
4646
};

plugins/filetrees/neo-tree.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in {
1313
(
1414
mkRemovedOptionModule
1515
(basePluginPath ++ ["sourceSelector" "tabLabels"])
16-
"Use `plugins.neo-tree.sourceSelector.sources` to achieve the same functionnality."
16+
"Use `plugins.neo-tree.sourceSelector.sources` to achieve the same functionality."
1717
)
1818
(
1919
mkRemovedOptionModule

plugins/git/diffview.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ in {
328328
'';
329329

330330
s = mkNullStr ''
331-
Look for differences that change the number of occurences of
331+
Look for differences that change the number of occurrences of
332332
the specified pattern (extended regular expression) in a
333333
file.
334334
'';

plugins/languages/clangd-extensions.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ with lib; let
1313
borderOpt = helpers.defaultNullOpts.mkBorder "none" "clangd-extensions" "";
1414
in {
1515
# All of those warnings were introduced on 08/22/2023.
16-
# TODO: Remove them in ~2 monts (Oct. 2023).
16+
# TODO: Remove them in ~2 months (Oct. 2023).
1717
imports =
1818
[
1919
(

plugins/languages/lean.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ in {
182182

183183
stderr = {
184184
enable = helpers.defaultNullOpts.mkBool true ''
185-
Redirect Lean's stderr messages somehwere (to a buffer by default).
185+
Redirect Lean's stderr messages somewhere (to a buffer by default).
186186
'';
187187

188188
height = helpers.defaultNullOpts.mkPositiveInt 5 "Height of the window.";

plugins/languages/markdown-preview.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ with helpers.vim-plugin;
119119
Scroll type:
120120
- "middle": The cursor position is always shown at the middle of the preview page.
121121
- "top": The vim top viewport is always shown at the top of the preview page.
122-
- "relative": The cursor position is always shown at the relative positon of the preview page.
122+
- "relative": The cursor position is always shown at the relative position of the preview page.
123123
'';
124124

125125
hide_yaml_meta = helpers.defaultNullOpts.mkBool true ''

plugins/languages/rustaceanvim.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ in {
107107
'';
108108

109109
pipe = helpers.mkNullOrStr ''
110-
Overide the pipe symbol in the shell command.
110+
Override the pipe symbol in the shell command.
111111
Useful if using a shell that is not supported by this plugin.
112112
'';
113113
};

plugins/languages/sniprun.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ in {
3333
mkList ''["Classic" "VirtualTextOk"]''
3434
''
3535
You can combo different display modes as desired and with the 'Ok' or 'Err' suffix to filter
36-
only sucessful runs (or errored-out runs respectively)
36+
only successful runs (or errored-out runs respectively)
3737
3838
Example:
3939
```nix

plugins/languages/treesitter/treesitter-refactor.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ with lib; {
6969
description = ''
7070
go to the definition of the symbol under the cursor or use vim.lsp.buf.definition if
7171
the symbol can not be resolved. You can use your own fallback function if create a
72-
mapping fo `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>`.
72+
mapping for `lua require'nvim-treesitter.refactor.navigation(nil, fallback_function)<cr>`.
7373
'';
7474
};
7575
listDefinitions = mkOption {

plugins/languages/treesitter/treesitter.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ in {
180180
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
181181
''
182182
+ (optionalString (cfg.languageRegister != {}) ''
183-
__parserFiltypeMappings = ${helpers.toLuaObject cfg.languageRegister}
183+
__parserFiletypeMappings = ${helpers.toLuaObject cfg.languageRegister}
184184
185-
for parser_name, ft in pairs(__parserFiltypeMappings) do
185+
for parser_name, ft in pairs(__parserFiletypeMappings) do
186186
require('vim.treesitter.language').register(parser_name, ft)
187187
end
188188
'');

plugins/languages/treesitter/ts-context-commentstring.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ with lib; {
2020
type = types.bool;
2121
default = true;
2222
description = ''
23-
Whethter to skip backwards compatibility routines and speed up loading.
23+
Whether to skip backwards compatibility routines and speed up loading.
2424
'';
2525
example = false;
2626
};

plugins/languages/typescript-tools.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ in {
126126
"WARNING: Experimental feature also in VSCode, disabled by default because it might impact server performance.";
127127

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

132132
jsxCloseTag = {

plugins/lsp/language-servers/nixd.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ in {
3838
options = {
3939
enable = helpers.defaultNullOpts.mkBool true ''
4040
Enable option completion task.
41-
If you are writting a package, disable this
41+
If you are writing a package, disable this
4242
'';
4343

4444
target = {

0 commit comments

Comments
 (0)