Update nvim jdtls config
parent
c896c102a3
commit
0f8a360b06
|
@ -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" },
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue