← 返回首页
Lazyvim · nvim-java/nvim-java Wiki · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Lazyvim

Srinesh Nisala edited this page Jun 30, 2024 · 12 revisions

Install nvim-java on Lazyvim

Video

I have following video if you'd like to watch.

Java Playground

If you just want to try it out, I have this devcontainer environment that quickly spin up a new docker container with everything you need including nvim-java configured lazyvim, some maven & gradle java project for you to try. All the instructions are in the readme.

Instruction to Setup

Important

For debugging, install dap.core LazyExtra package

Installing nvim-java is super easy

  • Create a new file for java plugin ~/.config/nvim/lua/plugins/java/init.lua
  • Add the following content to the file
return { 'nvim-java/nvim-java', config = false, dependencies = { { 'neovim/nvim-lspconfig', opts = { servers = { jdtls = { -- Your custom jdtls settings goes here }, }, setup = { jdtls = function() require('java').setup({ -- Your custom nvim-java configuration goes here }) end, }, }, }, }, }
  • Enjoy

Wiki pages Pages 6

Clone this wiki locally

Footer

© 2026 GitHub, Inc.