Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ return {
},
}
},
event = 'VeryLazy',
opts = {},
}
```

- Setup nvim-java before `lspconfig`

```lua
require('java').setup()
```

- Setup jdtls like you would usually do

```lua
Expand Down
3 changes: 2 additions & 1 deletion lua/java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ local global_config = require('java.config')
local M = {}

function M.setup(custom_config)
local config = vim.tbl_deep_extend('force', global_config, custom_config)
local config =
vim.tbl_deep_extend('force', global_config, custom_config or {})

nvim_dep.check()

Expand Down