From 511d5a0954d4bed26d95bab6156f335f9faa01eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=85=94=E9=96=91=E5=90=9F?= <50296129+Jint-lzxy@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:27:43 +0800 Subject: [PATCH] feat(plugins): migrate from `null-ls` to `none-ls` (#1088) IMO we can switch to `none-ls` before we decide on the best alternative to `null-ls` b/c it's a drop-in replacement for `null-ls`, and we can continue to receive future bug fixes as well. --- lua/core/settings.lua | 3 ++- lua/modules/plugins/completion.lua | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lua/core/settings.lua b/lua/core/settings.lua index 5cb85f5d6..7e32bff69 100644 --- a/lua/core/settings.lua +++ b/lua/core/settings.lua @@ -113,7 +113,8 @@ settings["lsp_deps"] = { -- Set the general-purpose servers that will be installed during bootstrap here. -- Check the below link for all supported sources. -- in `code_actions`, `completion`, `diagnostics`, `formatting`, `hover` folders: --- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins +-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins +---@type string[] settings["null_ls_deps"] = { -- formatting "black", diff --git a/lua/modules/plugins/completion.lua b/lua/modules/plugins/completion.lua index 9d53adcab..09a4f8049 100644 --- a/lua/modules/plugins/completion.lua +++ b/lua/modules/plugins/completion.lua @@ -34,14 +34,14 @@ completion["joechrisellis/lsp-format-modifications.nvim"] = { lazy = true, event = "LspAttach", } -completion["jose-elias-alvarez/null-ls.nvim"] = { - lazy = true, - event = { "CursorHold", "CursorHoldI" }, - config = require("completion.null-ls"), - dependencies = { - "nvim-lua/plenary.nvim", - "jay-babu/mason-null-ls.nvim", - }, +completion["nvimtools/none-ls.nvim"] = { + lazy = true, + event = { "CursorHold", "CursorHoldI" }, + config = require("completion.null-ls"), + dependencies = { + "nvim-lua/plenary.nvim", + "jay-babu/mason-null-ls.nvim", + }, } completion["hrsh7th/nvim-cmp"] = { lazy = true,