diff --git a/README.md b/README.md index b0bf542..cd050b5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lua/java.lua b/lua/java.lua index d5f3f09..febde67 100644 --- a/lua/java.lua +++ b/lua/java.lua @@ -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()