Skip to content

Commit

Permalink
👽 Rename dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 29, 2024
1 parent 59cf69b commit 5366448
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ A language server for [tmux](https://github.com/tmux/tmux)'s tmux.conf.

![Completion](https://github.com/Freed-Wu/tmux-language-server/assets/32936898/eefc7ec5-c8ef-41ac-8194-e939dac7ae36)

## How Does It Work

See [here](https://github.com/neomutt/lsp-tree-sitter#usage).

See
[![readthedocs](https://shields.io/readthedocs/tmux-language-server)](https://tmux-language-server.readthedocs.io)
to know more.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env -S pip install -r

# ErrorFinder
tree-sitter-lsp >= 0.0.13
lsp-tree-sitter
tree-sitter-tmux
2 changes: 1 addition & 1 deletion requirements/colorize.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env -S pip install -r

tree-sitter-lsp[colorize]
lsp-tree-sitter[colorize]
2 changes: 1 addition & 1 deletion requirements/misc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S pip install -r

# groff
tree-sitter-lsp[misc] >= 0.0.10
lsp-tree-sitter[misc] >= 0.0.10
4 changes: 2 additions & 2 deletions src/tmux_language_server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def main():
args = get_parser().parse_args()

if args.generate_schema or args.check or args.convert:
from tree_sitter_lsp.diagnose import check
from tree_sitter_lsp.utils import pprint
from lsp_tree_sitter.diagnose import check
from lsp_tree_sitter.utils import pprint
from tree_sitter_tmux import parser

from .finders import DIAGNOSTICS_FINDER_CLASSES
Expand Down
2 changes: 1 addition & 1 deletion src/tmux_language_server/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from dataclasses import dataclass

from lsp_tree_sitter.finders import ErrorFinder, QueryFinder, SchemaFinder
from lsprotocol.types import DiagnosticSeverity
from tree_sitter_lsp.finders import ErrorFinder, QueryFinder, SchemaFinder

from .schema import TmuxTrie
from .utils import get_query, get_schema
Expand Down
2 changes: 1 addition & 1 deletion src/tmux_language_server/misc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Any

from bs4.element import NavigableString, Tag
from tree_sitter_lsp.misc import get_soup
from lsp_tree_sitter.misc import get_soup

from .._metainfo import SOURCE, project

Expand Down
4 changes: 2 additions & 2 deletions src/tmux_language_server/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

from dataclasses import dataclass

from lsp_tree_sitter import UNI
from lsp_tree_sitter.schema import Trie
from lsprotocol.types import Position, Range
from tree_sitter import Node
from tree_sitter_lsp import UNI
from tree_sitter_lsp.schema import Trie

DIRECTIVES = {
"set_option_directive",
Expand Down
6 changes: 3 additions & 3 deletions src/tmux_language_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

from typing import Any

from lsp_tree_sitter.complete import get_completion_list_by_enum
from lsp_tree_sitter.diagnose import get_diagnostics
from lsp_tree_sitter.finders import PositionFinder
from lsprotocol.types import (
TEXT_DOCUMENT_COMPLETION,
TEXT_DOCUMENT_DID_CHANGE,
Expand All @@ -23,9 +26,6 @@
TextDocumentPositionParams,
)
from pygls.server import LanguageServer
from tree_sitter_lsp.complete import get_completion_list_by_enum
from tree_sitter_lsp.diagnose import get_diagnostics
from tree_sitter_lsp.finders import PositionFinder
from tree_sitter_tmux import parser

from .finders import DIAGNOSTICS_FINDER_CLASSES, ImportTmuxFinder
Expand Down

0 comments on commit 5366448

Please sign in to comment.