Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Mar 7, 2024
1 parent d5ade6d commit f410e43
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ next-env.d.ts
# test subset config
packages/test-harness/testSubsetGrep.properties

old
old
6 changes: 1 addition & 5 deletions packages/cursorless-neovim/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ import { NeovimFileSystem } from "./ide/neovim/NeovimFileSystem";
import { NeovimIDE } from "./ide/neovim/NeovimIDE";
import { Language, SyntaxNode, Tree } from "web-tree-sitter";
import { BufferManager, receivedBufferEvent } from "./types/BufferManager";
import {
bufferManager,
injectBufferManager,
} from "./singletons/bufmgr.singleton";
import { injectBufferManager } from "./singletons/bufmgr.singleton";
import { NeovimTextDocumentImpl } from "./ide/neovim/NeovimTextDocumentImpl";
import { ATTACH } from "neovim/lib/api/Buffer";

/**
* Simulates the extension entrypoint to match cursorless-vscode
Expand Down
1 change: 0 additions & 1 deletion packages/cursorless-neovim/src/ide/neovim/NeovimIDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import NeovimConfiguration from "./NeovimConfiguration";
import NeovimGlobalState from "./NeovimGlobalState";
import NeovimMessages from "./NeovimMessages";
import { NeovimTextEditorImpl } from "./NeovimTextEditorImpl";
import { eventEmitter } from "../../events";
import { neovimOnDidChangeTextDocument } from "./NeovimEvents";
import { Window } from "neovim";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import { URI } from "vscode-uri";
// toVscodeRange,
// } from "../../vscodeUtil";
import NeovimTextLineImpl from "./NeovimTextLineImpl";
import { bufferManager } from "../../singletons/bufmgr.singleton";
import { neovimContext } from "../../singletons/context.singleton";
import { Buffer } from "neovim";

export class NeovimTextDocumentImpl implements TextDocument {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { NeovimIDE } from "./NeovimIDE";
// import vscodeOpenLink from "./VscodeOpenLink";
// import { vscodeRevealLine } from "./VscodeRevealLine";
import { NeovimTextDocumentImpl } from "./NeovimTextDocumentImpl";
import { Buffer, Window } from "neovim";
import { Window } from "neovim";

// import { vscodeToggleBreakpoint } from "./VscodeToggleBreakpoint";

Expand Down
9 changes: 2 additions & 7 deletions packages/cursorless-neovim/src/types/BufferManager.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
//adapted from vscode-neovim\src\buffer_manager.ts

import {
TextDocument,
TextDocumentChangeEvent,
TextEditor,
} from "@cursorless/common";
import { Buffer, NeovimClient } from "neovim";
import { ATTACH } from "neovim/lib/api/Buffer";
import { TextDocument, TextEditor } from "@cursorless/common";
import { Buffer } from "neovim";
import { NeovimExtensionContext } from "../ide/neovim/NeovimExtensionContext";
// import { Disposable, Uri } from "vscode";
import { eventEmitter } from "../events";
Expand Down

0 comments on commit f410e43

Please sign in to comment.