From ac7ce0d0d0a63b1ca5d0aa87dd1229dd2166d4e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 29 Nov 2022 17:26:54 +0800 Subject: modify `require` after renaming files --- script/provider/capability.lua | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'script/provider/capability.lua') diff --git a/script/provider/capability.lua b/script/provider/capability.lua index 0f00cec1..873fbfd3 100644 --- a/script/provider/capability.lua +++ b/script/provider/capability.lua @@ -10,44 +10,6 @@ require 'provider.inlay-hint' local m = {} -local function testFileEvents(initer) - initer.fileOperations = { - didCreate = { - filters = { - { - pattern = { - glob = '**', - --matches = 'file', - options = platform.OS == 'Windows', - } - } - } - }, - didDelete = { - filters = { - { - pattern = { - glob = '**', - --matches = 'file', - options = platform.OS == 'Windows', - } - } - } - }, - didRename = { - filters = { - { - pattern = { - glob = '**', - --matches = 'file', - options = platform.OS == 'Windows', - } - } - } - }, - } -end - m.fillings = {} local function mergeFillings(provider) @@ -79,8 +41,6 @@ function m.getProvider() }, } - --testFileEvents() - nonil.enable() if not client.info.capabilities.textDocument.completion.dynamicRegistration or not client.info.capabilities.workspace.configuration then -- cgit v1.2.3