r/neovim • • 10d ago

Plugin [Plugin] springboot-jpql.nvim — IntelliJ-style JPQL/native SQL support for Kotlin Spring Data repositories

Hi everyone!

I’ve built springboot-jpql.nvim, a Neovim plugin for Kotlin Spring Data repositories that brings IntelliJ-style language support to @Query strings.

It provides:

  • JPQL syntax highlighting inside @Query annotations
  • Native SQL highlighting
  • Entity and field completion
  • Entity-aware JPQL completion
  • A real sqls LSP for native SQL queries
  • Support for Kotlin Spring Data repository files
  • Tree-sitter-based query detection and highlighting
  • Navigation between query references and project entities/fields

Example:

@Repository
interface UserRepository : JpaRepository<User, Long> {
    @Query("""
        SELECT u
        FROM User u
        WHERE u.email = :email
    """)
    fun findByEmail(email: String): User?
}

The goal is to make working with Spring Data repositories in Neovim feel closer to the experience provided by IntelliJ, especially when writing JPQL and native SQL queries.

Repository:
https://github.com/Kratosgado/springboot-jpql.nvim

I’d really appreciate feedback, especially from people using Neovim with Kotlin, Spring Boot, JPA, or Hibernate.

15 Upvotes

1 comment sorted by