[vim] Update API call that toggles visibility of inlay hints
This API is preferred as of some recent version of neovim.
This commit is contained in:
		
							parent
							
								
									a4883068de
								
							
						
					
					
						commit
						a0baeac863
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -50,7 +50,7 @@ local function set_up_local_lsp_mappings(buffer_number)
 | 
			
		|||
    map('n', 'gi', vim.lsp.buf.implementation, options)
 | 
			
		||||
    map('n', 'gK', vim.lsp.buf.signature_help, options)
 | 
			
		||||
    map('n', '<C-i>', function()
 | 
			
		||||
        vim.lsp.buf.inlay_hint.enable(buffer_number, not vim.lsp.inlay_hint.is_enabled())
 | 
			
		||||
        vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({}))
 | 
			
		||||
    end, options)
 | 
			
		||||
    map('n', '<leader>D', vim.lsp.buf.type_definition, options)
 | 
			
		||||
    map('n', '<leader>rn', vim.lsp.buf.rename, options)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue