feat: add editor hover command
This commit is contained in:
parent
c894ae6dea
commit
539b1fd37d
2 changed files with 9 additions and 0 deletions
|
@ -3490,6 +3490,12 @@ pub const Editor = struct {
|
|||
return project_manager.completion(file_path, primary.cursor.row, primary.cursor.col);
|
||||
}
|
||||
|
||||
pub fn hover(self: *Self, _: Context) Result {
|
||||
const file_path = self.file_path orelse return;
|
||||
const primary = self.get_primary();
|
||||
return project_manager.hover(file_path, primary.cursor.row, primary.cursor.col);
|
||||
}
|
||||
|
||||
pub fn add_diagnostic(
|
||||
self: *Self,
|
||||
file_path: []const u8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue