LunarVim configurations.
Notice: This repository is no longer maintained.
We have transitioned to a new generation of Java development environment configurations. The new setup, called JVIM
, is not based on Lunarvim but instead on a Neovim itself. All Java-related features are present and actively maintained.
Please visit the new repository: JVIM
Thank you for your understanding and continued support.
This project aims to convert LunarVim to the fully usable Java IDE. It enables debugging, refactoring and other Java language related features.
- Clone this configs into $HOME/.config/lvim/ folder.
git clone https://github.com/Israiloff/lvim-java-ide.git $HOME/.config/lvim/
- Clone and pack jdtls
git clone https://github.com/eclipse-jdtls/eclipse.jdt.ls.git $HOME/projects/nvim/jdtls/
cd $HOME/projects/nvim/jdtls/
./mvnw clean verify -DskipTests=true
- Clone, pack and install java debug
git clone https://github.com/microsoft/java-debug.git $HOME/projects/nvim/java-debug/
cd $HOME/projects/nvim/java-debug/
./mvnw clean install
- Clone and pack java test
git clone https://github.com/microsoft/vscode-java-test.git $HOME/projects/nvim/java-test/
cd $HOME/projects/nvim/java-test/
npm run build-plugin
- Clone and pack lemminx for XML support
git clone https://github.com/eclipse/lemminx.git $HOME/projects/nvim/lemminx/
cd $HOME/projects/nvim/lemminx/
./mvnw clean verify -DskipTests
- Download Lombok
curl -L https://projectlombok.org/downloads/lombok.jar -o $HOME/projects/nvim/lombok.jar
- Update Lvim and clear cache
lvim +LvimUpdate +LvimCacheReset +q
Copilot is a plugin for LunarVim that uses OpenAI's Codex to provide code completions and suggestions.
Completions (alt+l)
are available in insert mode and suggestions are available in normal mode in which-key menu.
To use it, follow these steps:
- Run
:Copilot setup
and enter your Copilot account credentials. - Enable the plugin by running
:Copilot enable
Chat GPT is a plugin for LunarVim that uses OpenAI's GPT-4 to provide code completions and suggestions.
To use it you need to have an OpenAI API key.
Set the OPENAI_API_KEY
environment variable in your shell and run :ChatGPT enable
in LunarVim.
echo "export OPENAI_API_KEY=YOUR_PERSONAL_OPENAI_API_KEY" >> $HOME/.zshrc
All features are available in the
which-key
menu.
You can use the Docker container configured in a separate project in a few simple steps.
- Pull the image
docker pull israiloff/lvim:latest
- Run the container with only necessary ports
docker run -it -d -p 33235:33235 --name lvim israiloff/lvim:latest
- Run the container with additional ports and access to docker itself
docker run -it -d -p 33235:33235 -p 8090-8099:8090-8099 -v /var/run/docker.sock:/var/run/docker.sock --name lvim israiloff/lvim:latest
Port
33235
is used for the markdown preview server. Ports8090-8099
are additional ports for debugging and testing.
- Enter the container
docker exec -it lvim /bin/zsh
All screenshots are taken from the Windows 11 terminal.