You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lsp/copilot.lua
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,33 @@
13
13
---
14
14
--- Please see [terms of use for GitHub Copilot](https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features#github-copilot)
15
15
---
16
+
--- You need to enable `:help lsp-inline-completion` to receive suggestions. For example, you can enable it in the LspAttach event:
17
+
---
18
+
--- ```lua
19
+
--- vim.api.nvim_create_autocmd('LspAttach', {
20
+
--- callback = function(args)
21
+
--- local bufnr = args.buf
22
+
--- local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
23
+
---
24
+
--- if client:supports_method(vim.lsp.protocol.Methods.textDocument_inlineCompletion, bufnr) then
0 commit comments