We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b0cb9 commit 0fcb08aCopy full SHA for 0fcb08a
lua/flutter-tools/lsp/init.lua
@@ -231,7 +231,11 @@ local function get_server_config(user_config, callback)
231
config.commands = merge_config(defaults.commands, config.commands)
232
233
config.on_init = function(client, _)
234
- return client.notify("workspace/didChangeConfiguration", { settings = config.settings })
+ if vim.fn.has("nvim-0.12") == 0 then
235
+ return client.notify("workspace/didChangeConfiguration", { settings = config.settings })
236
+ else
237
+ return client:notify("workspace/didChangeConfiguration", { settings = config.settings })
238
+ end
239
end
240
callback(config)
241
end)
0 commit comments