mirror of
https://github.com/mfussenegger/nvim-jdtls
synced 2024-09-16 14:34:13 +02:00
Remove init_with_config_notify
This has been the default in neovim for a while now.
This commit is contained in:
parent
d69d6c08c5
commit
ba8b4a63e8
1 changed files with 0 additions and 14 deletions
|
@ -120,19 +120,6 @@ local function configuration_handler(err, result, ctx, config)
|
|||
end
|
||||
|
||||
|
||||
local function init_with_config_notify(original_init)
|
||||
return function(...)
|
||||
local client = select(1, ...)
|
||||
if client.config.settings then
|
||||
client.notify('workspace/didChangeConfiguration', { settings = client.config.settings })
|
||||
end
|
||||
if original_init then
|
||||
original_init(...)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function maybe_implicit_save()
|
||||
-- 💀
|
||||
-- If the client is attached to a buffer that doesn't exist on the filesystem,
|
||||
|
@ -248,7 +235,6 @@ function M.start_or_attach(config)
|
|||
java = {
|
||||
}
|
||||
})
|
||||
config.on_init = init_with_config_notify(config.on_init)
|
||||
maybe_implicit_save()
|
||||
vim.lsp.start(config)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue