From fe84f0e56fe1f616c4f9f82b8af1758553660310 Mon Sep 17 00:00:00 2001 From: isaacST08 Date: Mon, 10 Feb 2025 15:24:39 -0700 Subject: [PATCH] Fixed typos and formatting --- .../languages/tex/build/builders/builderTemplate.nix | 4 ++-- .../plugins/languages/tex/build/builders/latexmk.nix | 6 +++--- .../languages/tex/build/builders/tectonic.nix | 6 +++--- modules/plugins/languages/tex/default.nix | 2 +- modules/plugins/languages/tex/lsp/texlab.nix | 12 ++++++------ modules/plugins/languages/tex/pdfViewer/custom.nix | 4 ++-- modules/plugins/languages/tex/pdfViewer/okular.nix | 4 ++-- modules/plugins/languages/tex/pdfViewer/qpdfview.nix | 4 ++-- modules/plugins/languages/tex/pdfViewer/sioyek.nix | 4 ++-- .../languages/tex/pdfViewer/viewerTemplate.nix | 4 ++-- modules/plugins/languages/tex/pdfViewer/zathura.nix | 4 ++-- 11 files changed, 27 insertions(+), 27 deletions(-) diff --git a/modules/plugins/languages/tex/build/builders/builderTemplate.nix b/modules/plugins/languages/tex/build/builders/builderTemplate.nix index c9cc8163..02d20412 100644 --- a/modules/plugins/languages/tex/build/builders/builderTemplate.nix +++ b/modules/plugins/languages/tex/build/builders/builderTemplate.nix @@ -10,7 +10,7 @@ # # Module attribute set. This is the attribute set that the module that is # defining a builder is passed as its input. - moduleInheritencePackage, + moduleInheritancePackage, # # These are the standard options for the builder just like creating any # other module. Some options are required and are described below but @@ -25,7 +25,7 @@ ... }: let # Inherit the necessary variables available to any module. - inherit (moduleInheritencePackage) lib config; + inherit (moduleInheritancePackage) lib config; # # Inherit other useful functions. inherit (lib.modules) mkIf; diff --git a/modules/plugins/languages/tex/build/builders/latexmk.nix b/modules/plugins/languages/tex/build/builders/latexmk.nix index edc46584..4d024eb3 100644 --- a/modules/plugins/languages/tex/build/builders/latexmk.nix +++ b/modules/plugins/languages/tex/build/builders/latexmk.nix @@ -3,7 +3,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the builder name = "latexmk"; @@ -14,14 +14,14 @@ inherit (lib.types) bool package str; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "Whether to enable Tex Compilation Via latexmk"; package = mkOption { type = package; - default = (pkgs.texlive.withPackages (ps: [ ps.latexmk ])); + default = pkgs.texlive.withPackages (ps: [ps.latexmk]); description = "latexmk package"; }; diff --git a/modules/plugins/languages/tex/build/builders/tectonic.nix b/modules/plugins/languages/tex/build/builders/tectonic.nix index ec6e253c..1b131b33 100644 --- a/modules/plugins/languages/tex/build/builders/tectonic.nix +++ b/modules/plugins/languages/tex/build/builders/tectonic.nix @@ -3,7 +3,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the builder name = "tectonic"; @@ -18,7 +18,7 @@ cfg = config.vim.languages.tex; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "Whether to enable Tex Compilation Via Tectonic"; @@ -58,7 +58,7 @@ in ( description = '' Rerun the TeX engine exactly this many times after the first. - Setting this value to 0 will diable setting this option. + Setting this value to 0 will disable setting this option. ''; }; diff --git a/modules/plugins/languages/tex/default.nix b/modules/plugins/languages/tex/default.nix index 518361d7..252e8615 100644 --- a/modules/plugins/languages/tex/default.nix +++ b/modules/plugins/languages/tex/default.nix @@ -35,7 +35,7 @@ in { If no filetype can be determined automatically then by default it will fallback to plaintex. This option will enable setting the tex flavor in your lua config and you can set its value - useing the `vim.languages.tex.lsp.extraOpts.texFlavor.flavor = ` in your nvf config. + using the `vim.languages.tex.lsp.extraOpts.texFlavor.flavor = ` in your nvf config. Setting this option to `false` will omit the `vim.g.tex_flavor = ` line from your lua config entirely (unless you manually set it elsewhere of course). diff --git a/modules/plugins/languages/tex/lsp/texlab.nix b/modules/plugins/languages/tex/lsp/texlab.nix index 06b8819e..5677d958 100644 --- a/modules/plugins/languages/tex/lsp/texlab.nix +++ b/modules/plugins/languages/tex/lsp/texlab.nix @@ -169,11 +169,11 @@ in { description = '' Allows associating a label definition command with a custom prefix. Consider, ``` - \newcommand{\thm}[1]{\label{thm:#1}} - \thm{foo} + \newcommand{\theorem}[1]{\label{theorem:#1}} + \theorem{foo} ``` - Then setting `texlab.experimental.labelDefinitionPrefixes` to `[["thm", "thm:"]]` and adding "thm" - to `texlab.experimental.labelDefinitionCommands` will make the server recognize the `thm:foo` label. + Then setting `texlab.experimental.labelDefinitionPrefixes` to `[["theorem", "theorem:"]]` and adding "theorem" + to `texlab.experimental.labelDefinitionCommands` will make the server recognize the `theorem:foo` label. ''; }; @@ -221,7 +221,7 @@ in { Enable this option if you want to have the compiled document appear in your chosen PDF viewer. For some options see [here](https://github.com/latex-lsp/texlab/wiki/Previewing). - Note this is not all the options, but can act as a guide to help you allong with custom configs. + Note this is not all the options, but can act as a guide to help you along with custom configs. ''; package = mkOption { @@ -405,7 +405,7 @@ in { - description: If set, the server will try to match a label to environment and append its number. - default: false - Note: This functionallity may not be working, please follow https://github.com/latex-lsp/texlab/pull/1311 + Note: This functionality may not be working, please follow https://github.com/latex-lsp/texlab/pull/1311 for status updates. ''; }; diff --git a/modules/plugins/languages/tex/pdfViewer/custom.nix b/modules/plugins/languages/tex/pdfViewer/custom.nix index ec4b331b..189663fe 100644 --- a/modules/plugins/languages/tex/pdfViewer/custom.nix +++ b/modules/plugins/languages/tex/pdfViewer/custom.nix @@ -2,7 +2,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the pdf viewer name = "custom"; @@ -13,7 +13,7 @@ inherit (lib.types) package str listOf; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "enable using a custom pdf viewer."; diff --git a/modules/plugins/languages/tex/pdfViewer/okular.nix b/modules/plugins/languages/tex/pdfViewer/okular.nix index 74cb88b7..e341fa4d 100644 --- a/modules/plugins/languages/tex/pdfViewer/okular.nix +++ b/modules/plugins/languages/tex/pdfViewer/okular.nix @@ -2,7 +2,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the pdf viewer name = "okular"; @@ -13,7 +13,7 @@ inherit (lib.types) package str listOf; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "enable okular as the pdf file previewer."; diff --git a/modules/plugins/languages/tex/pdfViewer/qpdfview.nix b/modules/plugins/languages/tex/pdfViewer/qpdfview.nix index dafe93f4..ef294bcf 100644 --- a/modules/plugins/languages/tex/pdfViewer/qpdfview.nix +++ b/modules/plugins/languages/tex/pdfViewer/qpdfview.nix @@ -2,7 +2,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the pdf viewer name = "qpdfview"; @@ -13,7 +13,7 @@ inherit (lib.types) package str listOf; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "enable qpdfview as the pdf file previewer."; diff --git a/modules/plugins/languages/tex/pdfViewer/sioyek.nix b/modules/plugins/languages/tex/pdfViewer/sioyek.nix index 9ea9f3f8..a4c647b1 100644 --- a/modules/plugins/languages/tex/pdfViewer/sioyek.nix +++ b/modules/plugins/languages/tex/pdfViewer/sioyek.nix @@ -2,7 +2,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the pdf viewer name = "sioyek"; @@ -13,7 +13,7 @@ inherit (lib.types) package str listOf; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "enable sioyek as the pdf file previewer."; diff --git a/modules/plugins/languages/tex/pdfViewer/viewerTemplate.nix b/modules/plugins/languages/tex/pdfViewer/viewerTemplate.nix index 7b2ba93b..dd81b7a4 100644 --- a/modules/plugins/languages/tex/pdfViewer/viewerTemplate.nix +++ b/modules/plugins/languages/tex/pdfViewer/viewerTemplate.nix @@ -10,7 +10,7 @@ # # Module attribute set. This is the attribute set that the module that is # defining a pdf viewer is passed as its input. - moduleInheritencePackage, + moduleInheritancePackage, # # These are the standard options for the pdf viewer just like creating any # other module. Some options are required and are described below but @@ -25,7 +25,7 @@ ... }: let # Inherit the necessary variables available to any module. - inherit (moduleInheritencePackage) lib config; + inherit (moduleInheritancePackage) lib config; # # Inherit other useful functions. inherit (lib.modules) mkIf; diff --git a/modules/plugins/languages/tex/pdfViewer/zathura.nix b/modules/plugins/languages/tex/pdfViewer/zathura.nix index b1589b5a..99d95498 100644 --- a/modules/plugins/languages/tex/pdfViewer/zathura.nix +++ b/modules/plugins/languages/tex/pdfViewer/zathura.nix @@ -2,7 +2,7 @@ pkgs, lib, ... -} @ moduleInheritencePackage: let +} @ moduleInheritancePackage: let # The name of the pdf viewer name = "zathura"; @@ -13,7 +13,7 @@ inherit (lib.types) package str listOf; in ( template { - inherit name moduleInheritencePackage; + inherit name moduleInheritancePackage; options = { enable = mkEnableOption "enable zathura as the pdf file previewer.";