Readd java lombok config
This commit is contained in:
@@ -138,6 +138,17 @@ for _, ls in ipairs(language_servers) do
|
||||
})
|
||||
end
|
||||
require('ufo').setup()
|
||||
|
||||
|
||||
|
||||
-- Java
|
||||
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "jdtls" })
|
||||
local lspconfig = require('lspconfig')
|
||||
local lombok = vim.fn.stdpath('data') .. '/mason/packages/jdtls/lombok.jar'
|
||||
lspconfig.jdtls.setup { cmd = { "jdtls", "--jvm-arg=-javaagent:" .. lombok } }
|
||||
|
||||
|
||||
|
||||
-- RUST CONFIG
|
||||
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "rust_analyzer" })
|
||||
|
||||
@@ -183,7 +194,7 @@ pcall(function()
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost", "BufEnter", "CursorHold", "InsertLeave" }, {
|
||||
pattern = { "*.rs" },
|
||||
callback = function()
|
||||
local _, _ = pcall(vim.lsp.codelens.refresh)
|
||||
-- local _, _ = pcall(vim.lsp.codelens.refresh)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
@@ -253,3 +264,4 @@ lvim.builtin.which_key.mappings["C"] = {
|
||||
f = { "<cmd>lua require'crates'.show_features_popup()<cr>", "[crates] show features" },
|
||||
D = { "<cmd>lua require'crates'.show_dependencies_popup()<cr>", "[crates] show dependencies" },
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user