rollback: error jdtls linux

This commit is contained in:
asep.komarudin 2024-06-29 07:28:45 +07:00
parent 91ecdb0406
commit fa940d994e
8 changed files with 127 additions and 331 deletions

View file

@ -92,29 +92,29 @@ if pcode.active_golang_config then
end
-- run if python config true
if pcode.active_python_config then
-- table.insert(pcode.treesitter_ensure_installed, "python")
-- table.insert(pcode.mason_ensure_installed, "pyright")
-- table.insert(pcode.null_ls_ensure_installed, "flake8")
-- table.insert(pcode.null_ls_ensure_installed, "black")
table.insert(pcode.treesitter_ensure_installed, "python")
table.insert(pcode.mason_ensure_installed, "pyright")
table.insert(pcode.null_ls_ensure_installed, "flake8")
table.insert(pcode.null_ls_ensure_installed, "black")
if vim.fn.has("win32") ~= 1 then
pcode.nvim_dap = true
end
end
-- run if cpp config true
-- if pcode.active_cpp_config then
-- table.insert(pcode.treesitter_ensure_installed, "cpp")
-- table.insert(pcode.treesitter_ensure_installed, "c")
-- table.insert(pcode.mason_ensure_installed, "clangd")
-- table.insert(pcode.null_ls_ensure_installed, "clang_format")
-- table.insert(pcode.dap_ensure_installed, "codelldb")
-- pcode.nvim_dap = true
-- end
-- run if java config true
if pcode.active_java_config.active and pcode.active_java_config.use_nvim_jdtls then
-- table.insert(pcode.treesitter_ensure_installed, "java")
-- table.insert(pcode.mason_ensure_installed, "jdtls")
-- table.insert(pcode.null_ls_ensure_installed, "google_java_format")
-- table.insert(pcode.dap_ensure_installed, "javadbg")
table.insert(pcode.unregister_lsp, "jdtls")
if pcode.active_cpp_config then
table.insert(pcode.treesitter_ensure_installed, "cpp")
table.insert(pcode.treesitter_ensure_installed, "c")
table.insert(pcode.mason_ensure_installed, "clangd")
table.insert(pcode.null_ls_ensure_installed, "clang_format")
table.insert(pcode.dap_ensure_installed, "codelldb")
pcode.nvim_dap = true
end
-- run if java config true
-- if pcode.active_java_config.active then
-- table.insert(pcode.treesitter_ensure_installed, "java")
-- table.insert(pcode.mason_ensure_installed, "jdtls")
-- table.insert(pcode.null_ls_ensure_installed, "google_java_format")
-- table.insert(pcode.dap_ensure_installed, "javadbg")
-- table.insert(pcode.unregister_lsp, "jdtls")
-- end
return {}