mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
chore: fix typos (#16816)
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Sebastian Volland <seb@baunz.net> Co-authored-by: Lewis Russell <lewis6991@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -897,7 +897,7 @@ function lsp.start_client(config)
|
||||
client.initialized = true
|
||||
uninitialized_clients[client_id] = nil
|
||||
client.workspace_folders = workspace_folders
|
||||
-- TODO(mjlbach): Backwards compatbility, to be removed in 0.7
|
||||
-- TODO(mjlbach): Backwards compatibility, to be removed in 0.7
|
||||
client.workspaceFolders = client.workspace_folders
|
||||
client.server_capabilities = assert(result.capabilities, "initialize result doesn't contain capabilities")
|
||||
-- These are the cleaned up capabilities we use for dynamically deciding
|
||||
|
||||
@@ -453,7 +453,7 @@ end
|
||||
|
||||
--- Send request to the server to resolve document highlights for the current
|
||||
--- text document position. This request can be triggered by a key mapping or
|
||||
--- by events such as `CursorHold`, eg:
|
||||
--- by events such as `CursorHold`, e.g.:
|
||||
---
|
||||
--- <pre>
|
||||
--- autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
|
||||
|
||||
@@ -298,7 +298,7 @@ end
|
||||
|
||||
---@private
|
||||
-- rangelength depends on the offset encoding
|
||||
-- bytes for utf-8 (clangd with extenion)
|
||||
-- bytes for utf-8 (clangd with extension)
|
||||
-- codepoints for utf-16
|
||||
-- codeunits for utf-32
|
||||
-- Line endings count here as 2 chars for \r\n (dos), 1 char for \n (unix), and 1 char for \r (mac)
|
||||
|
||||
@@ -77,7 +77,7 @@ end
|
||||
|
||||
--- Determines whether this tree is valid.
|
||||
--- If the tree is invalid, `parse()` must be called
|
||||
--- to get the an updated tree.
|
||||
--- to get the updated tree.
|
||||
function LanguageTree:is_valid()
|
||||
return self._valid
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user