Skip to content

Commit

Permalink
Map JdtUpdateConfig to update_projects_config
Browse files Browse the repository at this point in the history
Closes #623
  • Loading branch information
mfussenegger committed Feb 17, 2024
1 parent 894c044 commit 01b57f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/jdtls/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ local function add_commands(client, bufnr, opts)
nargs = "?",
complete = "custom,v:lua.require'jdtls'._complete_set_runtime"
})
create_cmd("JdtUpdateConfig", "lua require('jdtls').update_project_config()")
create_cmd("JdtUpdateConfig", function(args)
require("jdtls").update_projects_config(args.bang and { select_mode = "all" } or {})
end, {
bang = true
})
create_cmd("JdtJol", "lua require('jdtls').jol(<f-args>)", {
nargs = "*"
})
Expand Down

0 comments on commit 01b57f7

Please sign in to comment.