Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ThePrimeagen/htmx-lsp
its so over
https://github.com/ThePrimeagen/htmx-lsp
Last synced: about 1 month ago
JSON representation
its so over
- Host: GitHub
- URL: https://github.com/ThePrimeagen/htmx-lsp
- Owner: ThePrimeagen
- License: mit
- Created: 2023-08-14T17:52:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-15T09:16:24.000Z (9 months ago)
- Last Synced: 2024-04-27T18:32:19.898Z (9 months ago)
- Language: Rust
- Size: 157 KB
- Stars: 537
- Watchers: 11
- Forks: 24
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-htmx - htmx-lsp - Language Server Protocol for Neovim to supercharge HTMX development (Tools)
README
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`
```lua
local lspconfig = require('lspconfig')
-- ...
lspconfig.htmx.setup{}
```Another option is to use [lsp-debug-tools](https://github.com/ThePrimeagen/lsp-debug-tools.nvim)
### VSCode
No published extension yet, but there is a development extension in the [`clients/vscode`](client/vscode/README.md) 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.```console
htmx-lsp -f /path/to/file --level [OFF | TRACE | DEBUG | INFO | WARN | ERROR]
```### Build
```console
cargo build# OR auto-build on file save, requires `cargo-watch`
cargo install cargo-watch
cargo watch -x build
```## Contributors