Skip to content

Commit

Permalink
feat(plugins): migrate from null-ls to none-ls (ayamir#1088)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jint-lzxy authored and Vincent Wang committed Dec 6, 2023
1 parent 777c8da commit 511d5a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lua/core/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions lua/modules/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 511d5a0

Please sign in to comment.