Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[package]
name = "helix-lsp"
version = "0.2.0"
authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
edition = "2018"
license = "MPL-2.0"
description = "LSP client implementation for Helix project"
categories = ["editor"]
repository = "https://github.com/helix-editor/helix"
homepage = "https://helix-editor.com"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
helix-core = { version = "0.2", path = "../helix-core" }

anyhow = "1.0"
futures-executor = "0.3"
futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false }
jsonrpc-core = { version = "17.1", default-features = false } # don't pull in all of futures
log = "0.4"
lsp-types = { version = "0.89", features = ["proposed"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
tokio = { version = "1.6", features = ["full"] }
tokio-stream = "0.1.6"
ntents">[
  (if)
  (when)
  (elif_branch)
  (else_branch)
  (of_branch) ; note: not case_statement
  (block)
  (while)
  (for)
  (try)
  (except_branch)
  (finally_branch)
  (defer)
  (static_statement)
  (proc_declaration)
  (func_declaration)
  (iterator_declaration)
  (converter_declaration)
  (method_declaration)
  (template_declaration)
  (macro_declaration)
  (symbol_declaration)
] @indent
;; increase the indentation level

[
  (if)
  (when)
  (elif_branch)
  (else_branch)
  (of_branch) ; note: not case_statement
  (block)
  (while)
  (for)
  (try)
  (except_branch)
  (finally_branch)
  (defer)
  (static_statement)
  (proc_declaration)
  (func_declaration)
  (iterator_declaration)
  (converter_declaration)
  (method_declaration)
  (template_declaration)
  (macro_declaration)
  (symbol_declaration)
] @extend
;; ???

[
  (return_statement)
  (raise_statement)
  (yield_statement)
  (break_statement)
  (continue_statement)
] @extend.prevent-once
;; end a level of indentation while staying indented

[
  ")" ; tuples
  "]" ; arrays, seqs
  "}" ; sets
] @outdent
;; end a level of indentation and unindent the line