summaryrefslogtreecommitdiff
path: root/script/provider/capability.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/capability.lua')
-rw-r--r--script/provider/capability.lua44
1 files changed, 41 insertions, 3 deletions
diff --git a/script/provider/capability.lua b/script/provider/capability.lua
index 9a8d4f9b..856f2b39 100644
--- a/script/provider/capability.lua
+++ b/script/provider/capability.lua
@@ -1,6 +1,7 @@
-local sp = require 'bee.subprocess'
-local nonil = require 'without-check-nil'
-local client = require 'provider.client'
+local sp = require 'bee.subprocess'
+local nonil = require 'without-check-nil'
+local client = require 'provider.client'
+local platform = require 'bee.platform'
local m = {}
@@ -51,6 +52,43 @@ function m.getIniter()
},
},
foldingRangeProvider = true,
+ workspace = {
+ fileOperations = {
+ didCreate = {
+ filters = {
+ {
+ pattern = {
+ glob = '**/*.lua',
+ matches = 'file',
+ options = platform.OS == 'Windows',
+ }
+ }
+ }
+ },
+ didDelete = {
+ filters = {
+ {
+ pattern = {
+ glob = '**/*.lua',
+ matches = 'file',
+ options = platform.OS == 'Windows',
+ }
+ }
+ }
+ },
+ didRename = {
+ filters = {
+ {
+ pattern = {
+ glob = '**/*.lua',
+ matches = 'file',
+ options = platform.OS == 'Windows',
+ }
+ }
+ }
+ },
+ },
+ }
--documentOnTypeFormattingProvider = {
-- firstTriggerCharacter = '}',
--},