summaryrefslogtreecommitdiff
path: root/script/method/textDocument
diff options
context:
space:
mode:
Diffstat (limited to 'script/method/textDocument')
-rw-r--r--script/method/textDocument/didChange.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/method/textDocument/didChange.lua b/script/method/textDocument/didChange.lua
index 83701662..fd8af6ba 100644
--- a/script/method/textDocument/didChange.lua
+++ b/script/method/textDocument/didChange.lua
@@ -1,3 +1,5 @@
+local fn = require 'filename'
+
--- @param lsp LSP
--- @param params table
--- @return boolean
@@ -7,7 +9,7 @@ return function (lsp, params)
local ws = lsp:findWorkspaceFor(doc.uri)
if ws then
local path = ws:relativePathByUri(doc.uri)
- if not path or not ws:isLuaFile(path) then
+ if not path or not fn.isLuaFile(path) then
return
end
if not lsp:isOpen(doc.uri) and ws.gitignore(path:string()) then