1 unstable release

0.1.0 Oct 3, 2023

#331 in Text editors

Download history 225/week @ 2024-12-13 206/week @ 2024-12-20 160/week @ 2024-12-27 267/week @ 2025-01-03 229/week @ 2025-01-10 233/week @ 2025-01-17 215/week @ 2025-01-24 217/week @ 2025-01-31 209/week @ 2025-02-07 260/week @ 2025-02-14 229/week @ 2025-02-21 228/week @ 2025-02-28 198/week @ 2025-03-07 230/week @ 2025-03-14 256/week @ 2025-03-21 269/week @ 2025-03-28

981 downloads per month
Used in htmx-lsp

MIT license

44KB
1K SLoC

HTMX-LSP logo HTMX-LSP logo
crates.io build status

its so over

LSP

Right now this is very much so a work in progress and currently provides basic autocomplete for most HTMX attributes. We have reached a point where I could use help! If you want to fill in documentation or help with autocompletes please open an issue/pr!

Integration

Neovim

htmx-lsp can be installed via Mason. And can be configured with lspconfig

local lspconfig = require('lspconfig')
-- ...
lspconfig.htmx.setup{}

Another option is to use lsp-debug-tools

VSCode

No published extension yet, but there is a development extension in the clients/vscode folder (with setup instructions)

Development

General

As of right now the general goal is just to provide completion for any - character received without even looking at the context.

After that, would be to perform some code actions that make sense and allow for amazing utility around htmx.

htmx-lsp -f /path/to/file --level [OFF | TRACE | DEBUG | INFO | WARN | ERROR]

Build

cargo build

# OR auto-build on file save, requires `cargo-watch`
cargo install cargo-watch
cargo watch -x build

Contributors

Dependencies

~9–19MB
~260K SLoC