more!!! add python support and formatters and null ls to manage all...

that automatically also change my stylua.toml to ignore everything
cause I don't like the way it formats stuff
This commit is contained in:
2025-06-11 03:21:25 -04:00
parent e830931ff4
commit 9ea9d9f516
14 changed files with 352 additions and 43 deletions

View File

@ -5,8 +5,7 @@ local map, auto = core.misc.map, core.misc.auto
local ok, jdtls = pcall(require, "jdtls")
if not ok then
vim.notify("jdtls not loaded, can't setup jdtls lsp or dap",
vim.log.levels.INFO, {})
vim.notify("jdtls not loaded, can't setup jdtls lsp or dap")
return
end
@ -68,8 +67,7 @@ local config = {
-- setup nvim-dap
local ok, dap = pcall(require, "dap")
if not ok then
vim.notify("dap not loaded can't setup dap for jdtls",
vim.log.levels.INFO, {})
vim.notify("dap not loaded can't setup dap for jdtls")
return
end
@ -146,20 +144,17 @@ local function version_check()
if out.code ~= 0 then
vim.notify(string.format(
"java version check failed: exit code %s", out.code),
vim.log.levels.ERROR, { title = core.misc.appid })
vim.log.levels.ERROR)
vim.notify(string.format(
"%s", vim.inspect(out.stdout)),
vim.log.levels.ERROR, { title = core.misc.appid })
"%s", vim.inspect(out.stdout)), vim.log.levels.ERROR)
return false
elseif not v then
vim.notify("no java version info found", vim.log.levels.ERROR,
{ title = core.misc.appid })
vim.notify("no java version info found", vim.log.levels.ERROR)
return false
elseif v.major < 21 then
vim.notify(string.format(
"java version %s < 21.0.0 Cannot run jdtls, bailing out",
v[1].."."..v[2].."."..v[3]),
vim.log.levels.ERROR, { title = core.misc.appid })
v[1].."."..v[2].."."..v[3]), vim.log.levels.ERROR)
return false
end