mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	docs(lsp): tweak inline_completion.get code snippet #35657
				
					
				
			`replace_keycodes` is true if `expr` is set, and "Accept" is a better term to describe the keymap.
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							f23bd47254
						
					
				
				
					commit
					21f2c2b19c
				
			@@ -2295,11 +2295,7 @@ get({opts})                                  *vim.lsp.inline_completion.get()*
 | 
			
		||||
          if not vim.lsp.inline_completion.get() then
 | 
			
		||||
            return '<Tab>'
 | 
			
		||||
          end
 | 
			
		||||
        end, {
 | 
			
		||||
          expr = true,
 | 
			
		||||
          replace_keycodes = true,
 | 
			
		||||
          desc = 'Get the current inline completion',
 | 
			
		||||
        })
 | 
			
		||||
        end, { expr = true, desc = 'Accept the current inline completion' })
 | 
			
		||||
<
 | 
			
		||||
 | 
			
		||||
    Parameters: ~
 | 
			
		||||
 
 | 
			
		||||
@@ -439,11 +439,7 @@ end
 | 
			
		||||
---   if not vim.lsp.inline_completion.get() then
 | 
			
		||||
---     return '<Tab>'
 | 
			
		||||
---   end
 | 
			
		||||
--- end, {
 | 
			
		||||
---   expr = true,
 | 
			
		||||
---   replace_keycodes = true,
 | 
			
		||||
---   desc = 'Get the current inline completion',
 | 
			
		||||
--- })
 | 
			
		||||
--- end, { expr = true, desc = 'Accept the current inline completion' })
 | 
			
		||||
--- ````
 | 
			
		||||
---@param opts? vim.lsp.inline_completion.get.Opts
 | 
			
		||||
---@return boolean `true` if a completion was applied, else `false`.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user