From 1aee1da790309ac25bdcb89a81e8f4f1386d9c8d Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Wed, 30 Aug 2023 15:33:58 +0800 Subject: [PATCH] chore: migrate old urls --- doc/BUILTINS.md | 44 +++++++++---------- doc/CONFIG.md | 2 +- .../builtins/diagnostics/checkstyle.lua | 2 +- lua/null-ls/builtins/diagnostics/pmd.lua | 2 +- .../builtins/diagnostics/pydocstyle.lua | 2 +- lua/null-ls/builtins/formatting/rustfmt.lua | 2 +- lua/null-ls/info.lua | 2 +- scripts/autogen.lua | 2 +- scripts/minimal_init.lua | 2 +- test/spec/builtins/diagnostics_spec.lua | 4 +- 10 files changed, 32 insertions(+), 32 deletions(-) diff --git a/doc/BUILTINS.md b/doc/BUILTINS.md index c96ed1f4..a487c233 100644 --- a/doc/BUILTINS.md +++ b/doc/BUILTINS.md @@ -407,7 +407,7 @@ local sources = { null_ls.builtins.diagnostics.actionlint } - Filetypes: `{ "yaml" }` - Method: `diagnostics` - Command: `actionlint` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/actionlint.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/actionlint.lua)) ### [alex](https://github.com/get-alex/alex) @@ -788,7 +788,7 @@ local sources = { null_ls.builtins.diagnostics.cspell } - Filetypes: `{}` - Method: `diagnostics` - Command: `cspell` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/cspell.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/cspell.lua)) ### [cue_fmt](https://github.com/cue-lang/cue) @@ -1349,7 +1349,7 @@ local sources = { null_ls.builtins.diagnostics.mypy } - Filetypes: `{ "python" }` - Method: `diagnostics` - Command: `mypy` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/mypy.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/mypy.lua)) ### [npm_groovy_lint](https://github.com/nvuillam/npm-groovy-lint) @@ -1649,7 +1649,7 @@ local sources = { null_ls.builtins.diagnostics.pydocstyle } #### Notes -- May fail to resolve config files. See [the wiki](https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Source-specific-Configuration#pydocstyle) for workarounds. +- May fail to resolve config files. See [the wiki](https://github.com/nvimtools/nil-ls.nvim/wiki/Source-specific-Configuration#pydocstyle) for workarounds. ### [pylama](https://github.com/klen/pylama) @@ -2214,7 +2214,7 @@ local sources = { null_ls.builtins.diagnostics.tidy } - Filetypes: `{ "html", "xml" }` - Method: `diagnostics` - Command: `tidy` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/tidy.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/tidy.lua)) ### todo_comments @@ -2329,7 +2329,7 @@ local sources = { null_ls.builtins.diagnostics.vale } - Filetypes: `{ "markdown", "tex", "asciidoc" }` - Method: `diagnostics` - Command: `vale` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/vale.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/vale.lua)) #### Notes @@ -2538,7 +2538,7 @@ local sources = { null_ls.builtins.formatting.autopep8 } - Filetypes: `{ "python" }` - Methods: `formatting, range_formatting` - Command: `autopep8` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/autopep8.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/autopep8.lua)) ### [bean_format](https://beancount.github.io/docs/running_beancount_and_generating_reports.html#bean-format) @@ -2814,7 +2814,7 @@ local sources = { null_ls.builtins.formatting.clang_format } - Filetypes: `{ "c", "cpp", "cs", "java", "cuda", "proto" }` - Methods: `formatting, range_formatting` - Command: `clang-format` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/clang_format.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/clang_format.lua)) ### [cljstyle](https://github.com/greglook/cljstyle) @@ -2971,7 +2971,7 @@ local sources = { - Filetypes: `{ "javascript", "javascriptreact", "json", "jsonc", "markdown", "typescript", "typescriptreact" }` - Method: `formatting` - Command: `deno` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/deno_fmt.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/deno_fmt.lua)) #### Notes @@ -3080,7 +3080,7 @@ local sources = { null_ls.builtins.formatting.emacs_scheme_mode } - Filetypes: `{ "scheme", "scheme.guile" }` - Method: `formatting` - Command: `emacs` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/emacs_scheme_mode.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/emacs_scheme_mode.lua)) #### Notes @@ -3101,7 +3101,7 @@ local sources = { null_ls.builtins.formatting.emacs_vhdl_mode } - Filetypes: `{ "vhdl" }` - Method: `formatting` - Command: `emacs` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/emacs_vhdl_mode.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/emacs_vhdl_mode.lua)) #### Notes @@ -3298,7 +3298,7 @@ local sources = { null_ls.builtins.formatting.format_r } - Filetypes: `{ "r", "rmd" }` - Method: `formatting` - Command: `R` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/format_r.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/format_r.lua)) ### [fourmolu](https://hackage.haskell.org/package/fourmolu) @@ -4025,7 +4025,7 @@ local sources = { null_ls.builtins.formatting.prettier } - Filetypes: `{ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "css", "scss", "less", "html", "json", "jsonc", "yaml", "markdown", "markdown.mdx", "graphql", "handlebars" }` - Methods: `formatting, range_formatting` - Command: `prettier` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettier.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettier.lua)) #### Notes @@ -4047,7 +4047,7 @@ local sources = { null_ls.builtins.formatting.prettierd } - Filetypes: `{ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "css", "scss", "less", "html", "json", "jsonc", "yaml", "markdown", "markdown.mdx", "graphql", "handlebars" }` - Methods: `formatting, range_formatting` - Command: `prettierd` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettierd.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettierd.lua)) ### [prettier_d_slim](https://github.com/mikew/prettier_d_slim) @@ -4064,7 +4064,7 @@ local sources = { null_ls.builtins.formatting.prettier_d_slim } - Filetypes: `{ "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "css", "scss", "less", "html", "json", "jsonc", "yaml", "markdown", "markdown.mdx", "graphql", "handlebars" }` - Methods: `formatting, range_formatting` - Command: `prettier_d_slim` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettier_d_slim.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/prettier_d_slim.lua)) #### Notes @@ -4230,7 +4230,7 @@ local sources = { null_ls.builtins.formatting.pyink } - Filetypes: `{ "python" }` - Methods: `formatting, range_formatting` - Command: `pyink` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/pyink.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/pyink.lua)) ### [qmlformat](https://doc-snapshots.qt.io/qt6-dev/qtquick-tools-and-utilities.html#qmlformat) @@ -4362,7 +4362,7 @@ local sources = { null_ls.builtins.formatting.rescript } - Filetypes: `{ "rescript" }` - Method: `formatting` - Command: `rescript` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/rescript.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/rescript.lua)) ### [rome](https://rome.tools) @@ -4477,7 +4477,7 @@ local sources = { null_ls.builtins.formatting.rustfmt } #### Notes - `--edition` defaults to `2015`. To set a different edition, use `extra_args`. -- See [the wiki](https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Source-specific-Configuration#rustfmt) for other workarounds. +- See [the wiki](https://github.com/nvimtools/nil-ls.nvim/wiki/Source-specific-Configuration#rustfmt) for other workarounds. ### [rustywind](https://github.com/avencera/rustywind) @@ -4743,7 +4743,7 @@ local sources = { null_ls.builtins.formatting.styler } - Filetypes: `{ "r", "rmd" }` - Method: `formatting` - Command: `R` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/styler.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/styler.lua)) ### [stylish_haskell](https://github.com/haskell/stylish-haskell) @@ -4777,7 +4777,7 @@ local sources = { null_ls.builtins.formatting.stylua } - Filetypes: `{ "lua", "luau" }` - Methods: `formatting, range_formatting` - Command: `stylua` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/stylua.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/stylua.lua)) ### [surface](https://hexdocs.pm/surface_formatter/readme.html) @@ -5022,7 +5022,7 @@ local sources = { null_ls.builtins.formatting.uncrustify } - Filetypes: `{ "c", "cpp", "cs", "java" }` - Method: `formatting` - Command: `uncrustify` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/uncrustify.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/uncrustify.lua)) ### [usort](https://github.com/facebookexperimental/usort) @@ -5158,7 +5158,7 @@ local sources = { null_ls.builtins.formatting.yapf } - Filetypes: `{ "python" }` - Methods: `formatting, range_formatting` - Command: `yapf` -- Args: dynamically resolved (see [source](https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/formatting/yapf.lua)) +- Args: dynamically resolved (see [source](https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/formatting/yapf.lua)) ### [yq](https://github.com/mikefarah/yq) diff --git a/doc/CONFIG.md b/doc/CONFIG.md index 800d3901..15a97f71 100644 --- a/doc/CONFIG.md +++ b/doc/CONFIG.md @@ -13,7 +13,7 @@ showing how to install it and its dependencies using ```lua use({ - "jose-elias-alvarez/null-ls.nvim", + "nvimtools/nil-ls.nvim", config = function() require("null-ls").setup() end, diff --git a/lua/null-ls/builtins/diagnostics/checkstyle.lua b/lua/null-ls/builtins/diagnostics/checkstyle.lua index ae6d499d..62f01639 100644 --- a/lua/null-ls/builtins/diagnostics/checkstyle.lua +++ b/lua/null-ls/builtins/diagnostics/checkstyle.lua @@ -4,7 +4,7 @@ local function parse_checkstyle_errors(params, output) if params.err:match("Must specify a config XML file.") then table.insert(output, { message = "You need to specify a configuration for checkstyle." - .. " See https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#checkstyle", + .. " See https://github.com/nvimtools/nil-ls.nvim/blob/main/doc/BUILTINS.md#checkstyle", severity = vim.diagnostic.severity.ERROR, bufnr = params.bufnr, }) diff --git a/lua/null-ls/builtins/diagnostics/pmd.lua b/lua/null-ls/builtins/diagnostics/pmd.lua index 2869f172..004c5737 100644 --- a/lua/null-ls/builtins/diagnostics/pmd.lua +++ b/lua/null-ls/builtins/diagnostics/pmd.lua @@ -12,7 +12,7 @@ local function parse_pmd_error(params, line, output) if line:match("The following option is required: %-%-rulesets") then table.insert(output, { message = "You need to specify a ruleset for PMD." - .. " See https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#pmd", + .. " See https://github.com/nvimtools/nil-ls.nvim/blob/main/doc/BUILTINS.md#pmd", severity = vim.diagnostic.severity.ERROR, bufnr = params.bufnr, }) diff --git a/lua/null-ls/builtins/diagnostics/pydocstyle.lua b/lua/null-ls/builtins/diagnostics/pydocstyle.lua index 5ecadad9..aaa743d0 100644 --- a/lua/null-ls/builtins/diagnostics/pydocstyle.lua +++ b/lua/null-ls/builtins/diagnostics/pydocstyle.lua @@ -9,7 +9,7 @@ return h.make_builtin({ url = "https://www.pydocstyle.org/", description = "pydocstyle is a static analysis tool for checking compliance with Python docstring conventions.", notes = { - "May fail to resolve config files. See [the wiki](https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Source-specific-Configuration#pydocstyle) for workarounds.", + "May fail to resolve config files. See [the wiki](https://github.com/nvimtools/nil-ls.nvim/wiki/Source-specific-Configuration#pydocstyle) for workarounds.", }, }, method = DIAGNOSTICS, diff --git a/lua/null-ls/builtins/formatting/rustfmt.lua b/lua/null-ls/builtins/formatting/rustfmt.lua index 18892338..99e7853b 100644 --- a/lua/null-ls/builtins/formatting/rustfmt.lua +++ b/lua/null-ls/builtins/formatting/rustfmt.lua @@ -10,7 +10,7 @@ return h.make_builtin({ description = "A tool for formatting rust code according to style guidelines.", notes = { "`--edition` defaults to `2015`. To set a different edition, use `extra_args`.", - "See [the wiki](https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Source-specific-Configuration#rustfmt) for other workarounds.", + "See [the wiki](https://github.com/nvimtools/nil-ls.nvim/wiki/Source-specific-Configuration#rustfmt) for other workarounds.", }, }, method = FORMATTING, diff --git a/lua/null-ls/info.lua b/lua/null-ls/info.lua index 7b911de1..4efdd813 100644 --- a/lua/null-ls/info.lua +++ b/lua/null-ls/info.lua @@ -126,7 +126,7 @@ M.show_window = function(opts) local header = { "null-ls", - "https://github.com/jose-elias-alvarez/null-ls.nvim", + "https://github.com/nvimtools/nil-ls.nvim", } table.insert(highlights, { "NullLsInfoHeader", header[1] }) diff --git a/scripts/autogen.lua b/scripts/autogen.lua index 389b8bfb..e1a2ed46 100644 --- a/scripts/autogen.lua +++ b/scripts/autogen.lua @@ -21,7 +21,7 @@ local BUILTINS_DIR = join_paths(NULL_LS_DIR, "lua", "null-ls", "builtins") local META_DIR = join_paths(BUILTINS_DIR, "_meta") local DOC_FILE = join_paths(NULL_LS_DIR, "doc", "BUILTINS.md") local BUILTINS_URL_TEMPLATE = - "https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/%s/%s.lua" + "https://github.com/nvimtools/nil-ls.nvim/blob/main/lua/null-ls/builtins/%s/%s.lua" -- metadata local sources = {} diff --git a/scripts/minimal_init.lua b/scripts/minimal_init.lua index 4e60b359..eb265569 100644 --- a/scripts/minimal_init.lua +++ b/scripts/minimal_init.lua @@ -33,7 +33,7 @@ local function load_plugins() { "wbthomason/packer.nvim", { - "jose-elias-alvarez/null-ls.nvim", + "nvimtools/nil-ls.nvim", requires = { "nvim-lua/plenary.nvim" }, config = null_ls_config, }, diff --git a/test/spec/builtins/diagnostics_spec.lua b/test/spec/builtins/diagnostics_spec.lua index 83ed72b0..10340848 100644 --- a/test/spec/builtins/diagnostics_spec.lua +++ b/test/spec/builtins/diagnostics_spec.lua @@ -1650,7 +1650,7 @@ describe("diagnostics", function() assert.same({ { message = "You need to specify a configuration for checkstyle. See" - .. " https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#checkstyle", + .. " https://github.com/nvimtools/nil-ls.nvim/blob/main/doc/BUILTINS.md#checkstyle", severity = vim.diagnostic.severity.ERROR, bufnr = 42, }, @@ -1905,7 +1905,7 @@ Run with --help for command line help.]], assert.same({ { message = "You need to specify a ruleset for PMD. See" - .. " https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#pmd", + .. " https://github.com/nvimtools/nil-ls.nvim/blob/main/doc/BUILTINS.md#pmd", severity = vim.diagnostic.severity.ERROR, bufnr = 42, },