mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1k stars 62 forks source link

command for full compile #562

Closed crhf closed 10 months ago

crhf commented 10 months ago

Problem Statement

Can we have a JdtFullCompile command alongside JdtCompile? Seems that JdtCompile defaults to incremental build, and I have to use JdtCompile full to run a full compile. But I don't want to type full every time; would be better to have another command, so it can be auto-completed.

Also, I didn't see in the doc that JdtCompile defaults to incremental; I had to dig into the source to find out. So I got confused when I had removed target/ and tried buiding again with JdtCompile - nothing happend. It would be good if the doc can make this clear.

Ideas or possible solutions

mfussenegger commented 10 months ago

You can define your own JdtFullCompile. I'm not adding a second command to safe typing out the parameter (which is only 1 space longer, and you can use completion). With wildoptions+=fuzzy even something like :JdtCo full works

crhf commented 10 months ago

Useful tip. Thanks!