From 51ac3daf312f17eb1d221de53498ce1ad3bf510a Mon Sep 17 00:00:00 2001 From: Milan Glacier Date: Sat, 29 Jul 2023 01:29:30 -0400 Subject: [PATCH] fix(efm): set `init_options` to enable format and code action. --- lua/lspconfig/server_configurations/efm.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/lspconfig/server_configurations/efm.lua b/lua/lspconfig/server_configurations/efm.lua index f5f74edc50..924ce271ff 100644 --- a/lua/lspconfig/server_configurations/efm.lua +++ b/lua/lspconfig/server_configurations/efm.lua @@ -5,6 +5,12 @@ return { cmd = { 'efm-langserver' }, root_dir = util.find_git_ancestor, single_file_support = true, + init_options = { + documentFormatting = true, + documentRangeFormatting = true, + hover = true, + codeAction = true, + }, }, docs = {