summaryrefslogtreecommitdiff
path: root/script/provider/capability.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-30 16:46:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-31 17:57:25 +0800
commita4684bbbf7e1f5a79c9ea0fda31e139afc797696 (patch)
treef02e3cd3e859903467af8d7d8820907c4db5cd85 /script/provider/capability.lua
parent72743649f17f891a367fecb9a161fd7e264ddf24 (diff)
downloadlua-language-server-a4684bbbf7e1f5a79c9ea0fda31e139afc797696.zip
show `refactor` in menu
Diffstat (limited to 'script/provider/capability.lua')
-rw-r--r--script/provider/capability.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index e50a40f0..b10435c3 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -32,7 +32,15 @@ function m.getIniter()
documentSymbolProvider = true,
workspaceSymbolProvider = true,
documentHighlightProvider = true,
- codeActionProvider = true,
+ codeActionProvider = {
+ codeActionKinds = {
+ '',
+ 'quickfix',
+ 'refactor.rewrite',
+ 'refactor.extract',
+ },
+ resolveProvider = false,
+ },
signatureHelpProvider = {
triggerCharacters = { '(', ',' },
},