From 0f8a360b06fe392974ec189b1598188c8d872794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Fri, 15 Mar 2024 14:26:57 +0100 Subject: [PATCH] Update nvim jdtls config --- symlinks/config/nvim/after/plugin/testing.lua | 4 +++- symlinks/config/nvim/lua/esensar/lsp/jdtls_setup.lua | 4 ++-- symlinks/config/nvim/plugin/projectionist.lua | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/symlinks/config/nvim/after/plugin/testing.lua b/symlinks/config/nvim/after/plugin/testing.lua index c954e07..907c87a 100644 --- a/symlinks/config/nvim/after/plugin/testing.lua +++ b/symlinks/config/nvim/after/plugin/testing.lua @@ -5,7 +5,9 @@ local neotest = require("neotest") neotest.setup({ adapters = { - require("neotest-rust"), + require("neotest-rust")({ + args = { "--no-capture" }, + }), require("neotest-plenary"), require("neotest-vim-test")({ ignore_file_types = { "rust", "lua" }, diff --git a/symlinks/config/nvim/lua/esensar/lsp/jdtls_setup.lua b/symlinks/config/nvim/lua/esensar/lsp/jdtls_setup.lua index f57f35e..5e2cfde 100644 --- a/symlinks/config/nvim/lua/esensar/lsp/jdtls_setup.lua +++ b/symlinks/config/nvim/lua/esensar/lsp/jdtls_setup.lua @@ -24,11 +24,11 @@ end function M.setup() 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").add_commands() local config = vim.tbl_extend("force", installed_jdtls, { flags = { diff --git a/symlinks/config/nvim/plugin/projectionist.lua b/symlinks/config/nvim/plugin/projectionist.lua index ca60157..a918d88 100644 --- a/symlinks/config/nvim/plugin/projectionist.lua +++ b/symlinks/config/nvim/plugin/projectionist.lua @@ -490,6 +490,9 @@ local rust_config = { ["tests/*.rs"] = { type = "test", }, + ["benches/*.rs"] = { + type = "bench", + }, } local zig_config = {