Skip to content

nm-remarkable/htmx-lsp

 
 

Repository files navigation

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

Vscode extension is bundled with each new release. However you have to manually set the path to the lsp in the vscode settings.

"htmx-lsp.intreperterPath": "<path>/htmx-lsp",

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

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.9%
  • JavaScript 2.6%
  • Other 0.5%