mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
enc: update config java jdtls
This commit is contained in:
parent
5e9e520a23
commit
3fb9efd7c9
2 changed files with 9 additions and 22 deletions
|
@ -47,28 +47,15 @@ M = {
|
|||
"nvim-lua/plenary.nvim",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"rcasia/neotest-java",
|
||||
"andy-bell101/neotest-java",
|
||||
},
|
||||
opts = function()
|
||||
return {
|
||||
enabled = is_gradle(),
|
||||
config = function()
|
||||
require("neotest").setup({
|
||||
adapters = {
|
||||
require("neotest-java"),
|
||||
},
|
||||
}
|
||||
end,
|
||||
enabled = is_gradle(),
|
||||
config = function(_, opts)
|
||||
-- get neotest namespace (api call creates or returns namespace)
|
||||
local neotest_ns = vim.api.nvim_create_namespace("neotest")
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
format = function(diagnostic)
|
||||
local message = diagnostic.message:gsub("\n", " "):gsub("\t", " "):gsub("%s+", " "):gsub("^%s+", "")
|
||||
return message
|
||||
end,
|
||||
},
|
||||
}, neotest_ns)
|
||||
require("neotest").setup(opts)
|
||||
})
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue