Prettier
This commit is contained in:
11
README.md
11
README.md
@@ -484,14 +484,17 @@ autocmd FileType TelescopePrompt lua require('cmp').setup.buffer { enabled = fal
|
|||||||
|
|
||||||
I've optimized `nvim-cmp` as much as possible, but there are currently some known / unfixable issues.
|
I've optimized `nvim-cmp` as much as possible, but there are currently some known / unfixable issues.
|
||||||
|
|
||||||
1. `cmp-buffer` source and too large buffer.
|
**`cmp-buffer` source and too large buffer**
|
||||||
|
|
||||||
The `cmp-buffer` source makes an index of the current buffer so if the current buffer is too large, it will slowdown the main UI thread.
|
The `cmp-buffer` source makes an index of the current buffer so if the current buffer is too large, it will slowdown the main UI thread.
|
||||||
|
|
||||||
1. Some language servers.
|
**Slow language server**
|
||||||
|
|
||||||
For example, `typescript-language-server` will returns 15k items to the client.
|
For example, `typescript-language-server` will returns 15k items to the client.
|
||||||
In such a case, it will take 100ms just to parse payloads as JSON.
|
In such a case, it will take 100ms just to parse payloads as JSON.
|
||||||
|
|
||||||
1. You set `vim.lsp.set_log_level` up by yourself.
|
**`vim.lsp.set_log_level`**
|
||||||
|
|
||||||
This setting will cause the filesystem operation for each LSP payload.
|
This setting will cause the filesystem operation for each LSP payload.
|
||||||
This will greatly slow down nvim-cmp (and other LSP related features).
|
This will greatly slow down nvim-cmp (and other LSP related features).
|
||||||
|
|
||||||
@@ -552,7 +555,7 @@ function source:is_available()
|
|||||||
end
|
end
|
||||||
|
|
||||||
---Return the source name for some information.
|
---Return the source name for some information.
|
||||||
source:get_debug_name = function()
|
function source:get_debug_name()
|
||||||
return 'example'
|
return 'example'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user