Skip to content

simaxme/java-snippets.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

java-snippets.nvim

Simple java snippets, made for LuaSnip.

Setup

You can simply add this plugin to your favorite code editor, e.g. in lazy.nvim:

{
    "simaxme/java-snippets.nvim",
    version = "*",
    opts = {}
}

(in other plugin managers you may have to run require("java-snippets").setup())

Options

{
    type_initialization = true,
    root_markers = {    -- root markers to detect where the java files "begin". This is required to determine the appropriate package class path.
      "main/java/",
      "test/java/"
    } 
}

Types

Type Initialization

Is set through the type_initialization option.

This provides 4 simple snippets:

  • class: Creates a boilerplate java class including the package declaration.
  • aclass: Creates a boilerplate java abstract class including the package declaration.
  • interface: Creates a boilerplate java interface including the package declaration.
  • enum: Creates a boilerplate java enum including the package declaration.

About

Simple java snippets, made for LuaSnip.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages