Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix: error when java.setup with no table
  • Loading branch information
s1n7ax committed Dec 8, 2023
commit d8b4b6487d67c9dddac293da38f594c1c22790c4
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 java-nvim before `lspconfig` and `mason-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