diff options
author | Mathias Fussenegger <f.mathias@zignar.net> | 2021-03-11 16:01:40 +0100 |
---|---|---|
committer | Mathias Fussenegger <f.mathias@zignar.net> | 2021-03-11 20:13:52 +0100 |
commit | 16827817bb0d16de0fb0ebca5faebe85d53c40a2 (patch) | |
tree | c9919d55414ba19be24424721e5b11613466dc02 /runtime/doc | |
parent | 5d20fc4fc5c076455a5c4c07dc297f214f43ee2d (diff) | |
download | rneovim-16827817bb0d16de0fb0ebca5faebe85d53c40a2.tar.gz rneovim-16827817bb0d16de0fb0ebca5faebe85d53c40a2.tar.bz2 rneovim-16827817bb0d16de0fb0ebca5faebe85d53c40a2.zip |
lsp: Use incremental sync by default
With the new implementation added in
https://github.com/neovim/neovim/pull/14079 I think this is now working
well enough to enable it by default.
There are high CPU usage issues popping up now and then and they might
at least partially be related to the full-text sync.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 2b3a0a68f9..061a851157 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -749,15 +749,6 @@ start_client({config}) *vim.lsp.start_client()* The following parameters describe fields in the {config} table. -> - - -- In init function for the client, you can do: - local custom_init = function(client) - if client.config.flags then - client.config.flags.allow_incremental_sync = true - end - end -< Parameters: ~ {root_dir} (required, string) Directory where the @@ -856,8 +847,8 @@ start_client({config}) *vim.lsp.start_client()* {flags} A table with flags for the client. The current (experimental) flags are: • allow_incremental_sync (bool, default - false): Allow using on_line callbacks - for lsp + true): Allow using incremental sync + for buffer edits Return: ~ Client id. |vim.lsp.get_client_by_id()| Note: client may |