Update nvim jdtls config

main
Ensar Sarajčić 2024-03-15 14:26:57 +01:00
parent c896c102a3
commit 0f8a360b06
3 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,9 @@
local neotest = require("neotest") local neotest = require("neotest")
neotest.setup({ neotest.setup({
adapters = { adapters = {
require("neotest-rust"), require("neotest-rust")({
args = { "--no-capture" },
}),
require("neotest-plenary"), require("neotest-plenary"),
require("neotest-vim-test")({ require("neotest-vim-test")({
ignore_file_types = { "rust", "lua" }, ignore_file_types = { "rust", "lua" },

View File

@ -24,11 +24,11 @@ end
function M.setup() function M.setup()
local installed_jdtls = { local installed_jdtls = {
settings = require("mason-registry.jdtls"):get_lsp_settings_schema():or_else({ properties = {} }).properties,
} }
installed_jdtls.cmd = { "jdtls" }
require("jdtls").setup_dap({ hotcoredeplace = "auto" }) require("jdtls").setup_dap({ hotcoredeplace = "auto" })
require("jdtls.setup").add_commands()
local config = vim.tbl_extend("force", installed_jdtls, { local config = vim.tbl_extend("force", installed_jdtls, {
flags = { flags = {

View File

@ -490,6 +490,9 @@ local rust_config = {
["tests/*.rs"] = { ["tests/*.rs"] = {
type = "test", type = "test",
}, },
["benches/*.rs"] = {
type = "bench",
},
} }
local zig_config = { local zig_config = {