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:
@ -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
|
||||
|
||||
|
@ -15,6 +15,5 @@ end)
|
||||
-- change neovim root
|
||||
map_local("n", "rt", function()
|
||||
vim.api.nvim_set_current_dir(vim.b.netrw_curdir)
|
||||
vim.notify("root dir updated: "..vim.b.netrw_curdir, vim.log.levels.LOW,
|
||||
{ title = core.misc.appid })
|
||||
vim.notify("root dir updated: "..vim.b.netrw_curdir)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user