add: auto switch to conform if use default config language

This commit is contained in:
asep.komarudin 2024-06-29 14:26:46 +07:00
parent 22202bc11b
commit fbd69d94ec
7 changed files with 295 additions and 258 deletions

View file

@ -1,25 +1,28 @@
return {
{
"nvimtools/none-ls.nvim",
lazy = true,
enabled = not (pcode.disable_null_ls or false),
dependencies = {
{
"jayp0521/mason-null-ls.nvim",
event = "VeryLazy",
opts = {
ensure_installed = pcode.null_ls_ensure_installed or {},
automatic_setup = true,
handlers = {},
local M = {}
if not (pcode.disable_null_ls or false) then
M = {
{
"nvimtools/none-ls.nvim",
lazy = true,
dependencies = {
{
"jayp0521/mason-null-ls.nvim",
event = "VeryLazy",
opts = {
ensure_installed = pcode.null_ls_ensure_installed or {},
automatic_setup = true,
handlers = {},
},
config = function(_, opts)
require("mason-null-ls").setup(opts)
end,
},
config = function(_, opts)
require("mason-null-ls").setup(opts)
end,
"nvimtools/none-ls-extras.nvim",
},
"nvimtools/none-ls-extras.nvim",
event = "InsertEnter",
opts = {},
config = true,
},
event = "InsertEnter",
opts = {},
config = true,
},
}
}
end
return M