diff options
author | Jon Huhn <nojnhuh@users.noreply.github.com> | 2023-04-22 02:37:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 09:37:38 +0200 |
commit | e9b85acfbb8d3b1dd6f92deb187800be757c6c68 (patch) | |
tree | f41accc6e876667534e98b06a03f17da4952ea23 | |
parent | 2d2ed4f6fdcb9c876a5635a02ccb48ff0cabddfa (diff) | |
download | rneovim-e9b85acfbb8d3b1dd6f92deb187800be757c6c68.tar.gz rneovim-e9b85acfbb8d3b1dd6f92deb187800be757c6c68.tar.bz2 rneovim-e9b85acfbb8d3b1dd6f92deb187800be757c6c68.zip |
feat(lsp): enable workspace/didChangeWatchedFiles by default (#23190)
-rw-r--r-- | runtime/doc/news.txt | 3 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index bbf63a5ee0..3f07dd2e66 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -52,6 +52,9 @@ The following changes to existing APIs or features add new behavior. • vim.diagnostic.config() now accepts a function for the virtual_text.prefix option, which allows for rendering e.g., diagnostic severities differently. +• The `workspace/didChangeWatchedFiles` LSP client capability is now enabled + by default. + ============================================================================== REMOVED FEATURES *news-removed* diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index 2cb8fc7955..a7919f12f5 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -837,7 +837,7 @@ function protocol.make_client_capabilities() refreshSupport = true, }, didChangeWatchedFiles = { - dynamicRegistration = false, + dynamicRegistration = true, relativePatternSupport = true, }, }, |