Crates.io | buffer-language-server |
lib.rs | buffer-language-server |
version | 0.1.0 |
source | src |
created_at | 2023-07-24 11:50:53.771187 |
updated_at | 2023-07-24 11:50:53.771187 |
description | LSP that can autocomplete words found in the opened buffer |
homepage | |
repository | https://github.com/metafates/buffer-language-server |
max_upload_size | |
id | 924516 |
size | 32,036 |
Warning This is just a proof-of-concept. Does not support Unicode (yet).
Language server that can autocomplete words found in the current buffer.
This is primary made for the Helix editor which currently lacks this functionality. See https://github.com/helix-editor/helix/issues/1063
Currently, it can only autocomplete the words1 found in the current buffer.
cargo install buffer-language-server
cargo install --git https://github.com/metafates/buffer-language-server
If you are using the stable version (<= 23.05), which doesn't support multiple language servers yet,
add these lines to your languages.toml
(if you want to enable this LSP for the markdown files)
[[language]]
name = "markdown"
language-server = { command = "buffer-language-server" }
Otherwise (you will need the Helix editor compiled from the HEAD [latest commit])
Add these lines to your languages.toml
[language-server.buffer-language-server]
command = "buffer-language-server"
Then you can use it as an additional language server.
[[language]]
name = "markdown"
language-servers = ["buffer-language-server"]
[[language]]
name = "my-language"
language-servers = ["buffer-language-server"]
"Word" is defined as a sequence of ASCII characters without whitespace nor punctuation. For example, one,two,three four!five
contains 5 words. ↩