feat(lsp): support textDocument/inlineCompletion

This commit is contained in:
Yi Ming
2025-08-20 13:54:20 +08:00
parent 40f5115ac4
commit 0e70aa0e86
12 changed files with 763 additions and 0 deletions

View File

@@ -514,6 +514,7 @@ function Client:initialize()
-- HACK: Capability modules must be loaded
require('vim.lsp.semantic_tokens')
require('vim.lsp._folding_range')
require('vim.lsp.inline_completion')
local init_params = {
-- The process Id of the parent process that started the server. Is null if
@@ -607,6 +608,7 @@ local static_registration_capabilities = {
[ms.textDocument_foldingRange] = 'foldingRangeProvider',
[ms.textDocument_implementation] = 'implementationProvider',
[ms.textDocument_inlayHint] = 'inlayHintProvider',
[ms.textDocument_inlineCompletion] = 'inlineCompletionProvider',
[ms.textDocument_inlineValue] = 'inlineValueProvider',
[ms.textDocument_linkedEditingRange] = 'linkedEditingRangeProvider',
[ms.textDocument_moniker] = 'monikerProvider',