#logo #help #htmx-lsp

htmx-lsp-util

small utilities for htmx-lsp

1 unstable release

0.1.0 Oct 3, 2023

#39 in #logo

Download history 259/week @ 2024-09-16 290/week @ 2024-09-23 305/week @ 2024-09-30 291/week @ 2024-10-07 306/week @ 2024-10-14 260/week @ 2024-10-21 256/week @ 2024-10-28 266/week @ 2024-11-04 223/week @ 2024-11-11 249/week @ 2024-11-18 205/week @ 2024-11-25 195/week @ 2024-12-02 246/week @ 2024-12-09 245/week @ 2024-12-16 179/week @ 2024-12-23 143/week @ 2024-12-30

841 downloads per month
Used in 2 crates

MIT license

3KB

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

~6–13MB
~142K SLoC