Skip to content

Commit 3b8aab4

Browse files
authored
fix: fail gracefully when plenary.nvim is not installed (#323)
* fix: catch missing plenary.nvim dependency * fix: only check for `plenary.async`
1 parent 3c206df commit 3b8aab4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/null-ls/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
local ok, _ = pcall(require, "plenary.async")
2+
if not ok then
3+
error("none-ls.nvim requires plenary.nvim - https://github.com/nvim-lua/plenary.nvim")
4+
end
5+
16
local c = require("null-ls.config")
27
local helpers = require("null-ls.helpers")
38
local sources = require("null-ls.sources")

0 commit comments

Comments
 (0)