2021-08-13 22:32:56 +02:00
|
|
|
local M = {}
|
|
|
|
|
2021-10-10 21:07:41 +02:00
|
|
|
local Log = require "lvim.core.log"
|
2021-10-03 16:13:46 +02:00
|
|
|
|
2022-04-29 16:26:15 +02:00
|
|
|
function M.setup()
|
2021-10-03 16:13:46 +02:00
|
|
|
local status_ok, null_ls = pcall(require, "null-ls")
|
|
|
|
if not status_ok then
|
|
|
|
Log:error "Missing null-ls dependency"
|
2021-08-13 22:32:56 +02:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2021-10-14 18:58:56 +02:00
|
|
|
local default_opts = require("lvim.lsp").get_common_opts()
|
2021-12-23 10:33:20 +01:00
|
|
|
null_ls.setup(vim.tbl_deep_extend("force", default_opts, lvim.lsp.null_ls.setup))
|
2021-08-13 22:32:56 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|