Update README.md
This commit is contained in:
@@ -14,18 +14,17 @@ The main goal is the plugin is to be simple and extensible for Java developers.
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
For Lazy.nvim:
|
For Lazy.nvim:
|
||||||
```
|
```lua
|
||||||
require {
|
require {
|
||||||
"DarthMooMancer/nvim-java",
|
"DarthMooMancer/nvim-java",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-java").setup()
|
require("nvim-java").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
For Mini.Deps:
|
For Mini.Deps:
|
||||||
```
|
```lua
|
||||||
MiniDeps.add({ source = 'DarthMooMancer/nvim-java', name = "nvim-java" })
|
MiniDeps.add({ source = 'DarthMooMancer/nvim-java', name = "nvim-java" })
|
||||||
require("nvim-java").setup()
|
require("nvim-java").setup()
|
||||||
|
|
||||||
@@ -35,7 +34,7 @@ require("nvim-java").setup()
|
|||||||
|
|
||||||
## Config
|
## Config
|
||||||
Currently the only thing you can change is the project root, here is how:
|
Currently the only thing you can change is the project root, here is how:
|
||||||
```
|
```lua
|
||||||
require...({
|
require...({
|
||||||
project_root = "Your folder or directory"
|
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:
|
Nvim-java doesnt come with default keybinds; however, here are the ones I use and recommend:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
vim.keymap.set("n", "<leader>jb", ":JavaBuild<CR>", { silent = true })
|
vim.keymap.set("n", "<leader>jb", ":JavaBuild<CR>", { silent = true })
|
||||||
vim.keymap.set("n", "<leader>jr", ":JavaRun<CR>", { silent = true })
|
vim.keymap.set("n", "<leader>jr", ":JavaRun<CR>", { silent = true })
|
||||||
vim.keymap.set("n", "<leader>nf", ":NewJavaFile<CR>", { silent = true })
|
vim.keymap.set("n", "<leader>nf", ":NewJavaFile<CR>", { silent = true })
|
||||||
|
|||||||
Reference in New Issue
Block a user