diff options
| -rw-r--r-- | lsp/rescriptls.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lsp/rescriptls.lua b/lsp/rescriptls.lua index 85203441..7f2af384 100644 --- a/lsp/rescriptls.lua +++ b/lsp/rescriptls.lua @@ -22,6 +22,17 @@ --- }) --- } --- ``` +--- +--- Detect file changes: While using @rescript/language-server >= 1.63.0 you have to detect file changes by registering the didChangeWatchedFiles hook. +--- ```lua +--- capabilities = { +--- workspace = { +--- didChangeWatchedFiles = { +--- dynamicRegistration = true, +--- }, +--- }, +--- } +--- ``` return { cmd = { 'rescript-language-server', '--stdio' }, filetypes = { 'rescript' }, |
