endif
enddef
-export def ApplyCodeAction(lspserver: dict<any>, actions: list<dict<any>>): void
+export def ApplyCodeAction(lspserver: dict<any>, actionlist: list<dict<any>>): void
+ var actions = actionlist
+
+ if opt.lspOptions.hideDisabledCodeActions
+ actions = actions->filter((ix, act) => !act->has_key('disabled'))
+ endif
+
if actions->empty()
# no action can be performed
util.WarnMsg('No code action is available')
# enable snippet completion support
snippetSupport: false,
# enable inlay hints
- showInlayHints: false
+ showInlayHints: false,
+ # hide disabled code actions
+ hideDisabledCodeActions: false
}
# set the LSP plugin options from the user provided option values
echoSignature In insert mode, echo the current symbol signature
instead of showing it in a popup. By default this is
set to false.
+hideDisabledCodeActions Hide all disabled code actions
ignoreMissingServer Do not print a missing language server executable.
By default this is set to false.
keepFocusInReferences Focus on the location list window after