Skip to content

A Language Server implimentation for LogSeq

Notifications You must be signed in to change notification settings

meain/logseqlsp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A LSP implementation for LogSeq flavored markdown

  • Attempts to improve the cli editing experience of markdown files that have log seq embed and queries by support hover, go to definition, and select references
  • If you have ideas for additional features please let me know :)

Usage

  • Download the release or build from source and copy the binary into your path. Then configure your lsp integration with the binary name.
  • For example in helix add this to ~/.config/helix/languages.toml
    •     [[language]]
          name = "markdown"
          scope = "source.md"
          injection-regex = "md|markdown"
          file-types = ["md", "markdown"]
          language-server = { command = "logseqlsp", args=["-t", "{your-token}", "-p", "{lsp-port}", "--log-file", "{/path/to/file}"] }
          indent = { tab-width = 2, unit = "  " }

Planned features

  • Support for code actions to do the following will be hit in the next pass
    • Rotate between todo, doing, done
    • Create page if it does not exist
  • Support for autocomplete on tags, properties, links will be added after code actions
  • Refactor/Rename page/tag/property might be possible
  • Tree Sitter syntax file may be added (help appreciated)
  • Virtual text for neovim will likely require an nvim plugin (help appreciate)

About

A Language Server implimentation for LogSeq

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%