# simple-inserts-language-server [![Go Report Card](https://goreportcard.com/badge/git.sr.ht/~jcmuller/simple-inserts-language-server)](https://goreportcard.com/report/git.sr.ht/~jcmuller/simple-inserts-language-server) ![MIT](https://img.shields.io/badge/license-MIT-green) [![Go Reference](https://pkg.go.dev/badge/git.sr.ht/~jcmuller/simple-inserts-language-server.svg)](https://pkg.go.dev/git.sr.ht/~jcmuller/simple-inserts-language-server) [![builds.sr.ht status](https://builds.sr.ht/~jcmuller/simple-inserts-language-server/commits/main.svg)](https://builds.sr.ht/~jcmuller/simple-inserts-language-server/commits/main?) Simple Inserts Language Server is a language server that allows you to insert calculated attributes in your documents. To begin with, go's date formats are included (datetime-rfc822, etc). I don't want to do any static mappings because [simple-completions-language-server](https://github.com/estin/simple-completion-language-server?tab=readme-ov-file#unicode-input)'s unicode input support can be used for this. ## Install You can download ready-made binaries for some architectures but going to "refs", choosing a version and then downloading the file from the left hand side column. If you have the go toolchain available, you can build this tool from source ``` $ go install git.sr.ht/~jcmuller/simple-inserts-language-server@latest ``` or, via nix flakes ``` $ nix profile install 'sourcehut:~jcmuller/simple-inserts-language-server' ``` ## Usage Here is an example of how to use this with helix: ```toml # languages.toml [[language]] auto-format = true language-servers = ["sils"] name = "markdown" [language-server.sils] command = "simple-inserts-language-server" ``` [![asciicast](./assets/demo-sils.gif)](https://asciinema.org/a/sBLcAQkNl0v7luOYGnvlv53RH) The server can be executed directly: ``` $ simple-inserts-language-server ``` or using nix flakes: ``` $ nix run 'sourcehut:~jcmuller/simple-inserts-language-server/main' ``` ## Roadmap - Support more types of completions