From ffb4b83e178afd14b0231ecfff12310d84d1a524 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Wed, 19 Feb 2025 11:56:36 -0500 Subject: [PATCH] Update README.md --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6b7a318..c1513b9 100644 --- a/README.md +++ b/README.md @@ -14,18 +14,17 @@ The main goal is the plugin is to be simple and extensible for Java developers. ## Installation For Lazy.nvim: -``` +```lua require { "DarthMooMancer/nvim-java", config = function() require("nvim-java").setup() end } - ``` For Mini.Deps: -``` +```lua MiniDeps.add({ source = 'DarthMooMancer/nvim-java', name = "nvim-java" }) require("nvim-java").setup() @@ -35,7 +34,7 @@ require("nvim-java").setup() ## Config Currently the only thing you can change is the project root, here is how: -``` +```lua require...({ project_root = "Your folder or directory" }) @@ -48,7 +47,7 @@ require...({ Nvim-java doesnt come with default keybinds; however, here are the ones I use and recommend: -``` +```lua vim.keymap.set("n", "jb", ":JavaBuild", { silent = true }) vim.keymap.set("n", "jr", ":JavaRun", { silent = true }) vim.keymap.set("n", "nf", ":NewJavaFile", { silent = true })