Skip to content

💬 LSP that can autocomplete words found in the opened buffer

License

Notifications You must be signed in to change notification settings

metafates/buffer-language-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buffer-language-server

asciicast

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 helix-editor/helix#1063

Currently, it can only autocomplete the words1 found in the current buffer.

Install

Cargo

cargo install buffer-language-server

From source

cargo install --git /~https://github.com/metafates/buffer-language-server

Use in your editor

Helix

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"]

Footnotes

  1. "Word" is defined as a sequence of ASCII characters without whitespace nor punctuation. For example, one,two,three four!five contains 5 words. ↩

About

💬 LSP that can autocomplete words found in the opened buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published