forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: cleanup names and better expose cursorless lua funcs
- Loading branch information
1 parent
6ea4985
commit 4d9767c
Showing
6 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import type { Clipboard } from "@cursorless/common"; | ||
import { getFromClipboard, putToClipboard } from "../../neovimApi"; | ||
import { getClipboard, setClipboard } from "../../neovimApi"; | ||
import type { NeovimClient } from "neovim"; | ||
|
||
export default class NeovimClipboard implements Clipboard { | ||
constructor(private client: NeovimClient) {} | ||
|
||
async readText(): Promise<string> { | ||
return await getFromClipboard(this.client); | ||
return await getClipboard(this.client); | ||
} | ||
|
||
async writeText(value: string): Promise<void> { | ||
return await putToClipboard(value, this.client); | ||
return await setClipboard(value, this.client); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters