-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
201 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env -S pip install -r | ||
|
||
tree-sitter-lsp[colorize] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
(path) @path |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
r"""Finders | ||
=========== | ||
""" | ||
|
||
from dataclasses import dataclass | ||
|
||
from lsprotocol.types import DiagnosticSeverity | ||
from tree_sitter_lsp.finders import ErrorFinder, QueryFinder | ||
|
||
from .utils import get_query | ||
|
||
|
||
@dataclass(init=False) | ||
class ImportTmuxFinder(QueryFinder): | ||
r"""Import Tmux finder.""" | ||
|
||
def __init__( | ||
self, | ||
message: str = "{{uni.get_text()}}: found", | ||
severity: DiagnosticSeverity = DiagnosticSeverity.Information, | ||
): | ||
r"""Init. | ||
:param message: | ||
:type message: str | ||
:param severity: | ||
:type severity: DiagnosticSeverity | ||
""" | ||
query = get_query("import") | ||
super().__init__(query, message, severity) | ||
|
||
|
||
DIAGNOSTICS_FINDER_CLASSES = [ | ||
ErrorFinder, | ||
] |
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