mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	LSP: Add jump when calling gotodef (#11521)
This commit is contained in:
		 Jakub Łuczyński
					Jakub Łuczyński
				
			
				
					committed by
					
						 Ashkan Kiani
						Ashkan Kiani
					
				
			
			
				
	
			
			
			 Ashkan Kiani
						Ashkan Kiani
					
				
			
						parent
						
							0e6c6261e1
						
					
				
				
					commit
					30ed245d00
				
			| @@ -313,6 +313,8 @@ end | |||||||
| function M.jump_to_location(location) | function M.jump_to_location(location) | ||||||
|   if location.uri == nil then return end |   if location.uri == nil then return end | ||||||
|   local bufnr = vim.uri_to_bufnr(location.uri) |   local bufnr = vim.uri_to_bufnr(location.uri) | ||||||
|  |   -- Save position in jumplist | ||||||
|  |   vim.cmd "normal! m'" | ||||||
|   -- TODO(ashkan) use tagfunc here to update tagstack. |   -- TODO(ashkan) use tagfunc here to update tagstack. | ||||||
|   api.nvim_set_current_buf(bufnr) |   api.nvim_set_current_buf(bufnr) | ||||||
|   local row = location.range.start.line |   local row = location.range.start.line | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user