diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-08 18:27:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-08 18:27:12 +0800 |
commit | ef87faf3cfca7654095b2c167e0faa20837b1080 (patch) | |
tree | 9a734bf2b93e95b7996edda53cb7b9ce2e35659e /script/method | |
parent | 7b67c5d4dc31f0b49994d334e8353ca4430224d3 (diff) | |
download | lua-language-server-ef87faf3cfca7654095b2c167e0faa20837b1080.zip |
#189 查看字符串的设置
Diffstat (limited to 'script/method')
-rw-r--r-- | script/method/textDocument/hover.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/method/textDocument/hover.lua b/script/method/textDocument/hover.lua index 4ae80040..a456bb0a 100644 --- a/script/method/textDocument/hover.lua +++ b/script/method/textDocument/hover.lua @@ -1,4 +1,5 @@ local core = require 'core' +local config = require 'config' local function convertRange(lines, range) local start_row, start_col = lines:rowcol(range.start) @@ -21,6 +22,9 @@ end --- @param params table --- @return table return function (lsp, params) + if not config.config.hover.enable then + return nil + end local uri = params.textDocument.uri local vm, lines = lsp:loadVM(uri) if not vm then |