From a3c18d373810ebd4e08e494fd14fb530581ccb43 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 5 Mar 2024 14:07:24 +0100 Subject: [PATCH] move attributes to the correct folder --- .../class-tools/classes.md | 0 .../handlebars-template.md | 0 .../mustache-template.md | 0 .../nunjucks-template.md | 0 .../client-side-templates/xslt-template.md | 0 .../head-support/hx-head.md | 0 .../include-vals/include-vals.md | 0 .../loading-states/data-loading-aria-busy.md | 0 .../data-loading-class-remove.md | 0 .../loading-states/data-loading-class.md | 0 .../loading-states/data-loading-delay.md | 0 .../loading-states/data-loading-disable.md | 0 .../loading-states/data-loading-path.md | 0 .../loading-states/data-loading-states.md | 0 .../loading-states/data-loading-target.md | 0 .../loading-states/data-loading.md | 0 .../path-deps/path-deps.md | 0 .../preload/preload-images.md | 0 .../{hx-ext => attributes}/preload/preload.md | 0 .../remove-me/remove-me.md | 0 .../response-targets/hx-target-error.md | 0 .../{hx-ext => attributes}/sse/sse-connect.md | 0 .../{hx-ext => attributes}/sse/sse-swap.md | 0 .../{hx-ext => attributes}/ws/ws-connect.md | 0 .../htmx/{hx-ext => attributes}/ws/ws-send.md | 0 lsp/src/htmx/mod.rs | 50 +++++++++---------- 26 files changed, 25 insertions(+), 25 deletions(-) rename lsp/src/htmx/{hx-ext => attributes}/class-tools/classes.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/client-side-templates/handlebars-template.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/client-side-templates/mustache-template.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/client-side-templates/nunjucks-template.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/client-side-templates/xslt-template.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/head-support/hx-head.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/include-vals/include-vals.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-aria-busy.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-class-remove.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-class.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-delay.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-disable.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-path.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-states.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading-target.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/loading-states/data-loading.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/path-deps/path-deps.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/preload/preload-images.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/preload/preload.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/remove-me/remove-me.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/response-targets/hx-target-error.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/sse/sse-connect.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/sse/sse-swap.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/ws/ws-connect.md (100%) rename lsp/src/htmx/{hx-ext => attributes}/ws/ws-send.md (100%) diff --git a/lsp/src/htmx/hx-ext/class-tools/classes.md b/lsp/src/htmx/attributes/class-tools/classes.md similarity index 100% rename from lsp/src/htmx/hx-ext/class-tools/classes.md rename to lsp/src/htmx/attributes/class-tools/classes.md diff --git a/lsp/src/htmx/hx-ext/client-side-templates/handlebars-template.md b/lsp/src/htmx/attributes/client-side-templates/handlebars-template.md similarity index 100% rename from lsp/src/htmx/hx-ext/client-side-templates/handlebars-template.md rename to lsp/src/htmx/attributes/client-side-templates/handlebars-template.md diff --git a/lsp/src/htmx/hx-ext/client-side-templates/mustache-template.md b/lsp/src/htmx/attributes/client-side-templates/mustache-template.md similarity index 100% rename from lsp/src/htmx/hx-ext/client-side-templates/mustache-template.md rename to lsp/src/htmx/attributes/client-side-templates/mustache-template.md diff --git a/lsp/src/htmx/hx-ext/client-side-templates/nunjucks-template.md b/lsp/src/htmx/attributes/client-side-templates/nunjucks-template.md similarity index 100% rename from lsp/src/htmx/hx-ext/client-side-templates/nunjucks-template.md rename to lsp/src/htmx/attributes/client-side-templates/nunjucks-template.md diff --git a/lsp/src/htmx/hx-ext/client-side-templates/xslt-template.md b/lsp/src/htmx/attributes/client-side-templates/xslt-template.md similarity index 100% rename from lsp/src/htmx/hx-ext/client-side-templates/xslt-template.md rename to lsp/src/htmx/attributes/client-side-templates/xslt-template.md diff --git a/lsp/src/htmx/hx-ext/head-support/hx-head.md b/lsp/src/htmx/attributes/head-support/hx-head.md similarity index 100% rename from lsp/src/htmx/hx-ext/head-support/hx-head.md rename to lsp/src/htmx/attributes/head-support/hx-head.md diff --git a/lsp/src/htmx/hx-ext/include-vals/include-vals.md b/lsp/src/htmx/attributes/include-vals/include-vals.md similarity index 100% rename from lsp/src/htmx/hx-ext/include-vals/include-vals.md rename to lsp/src/htmx/attributes/include-vals/include-vals.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-aria-busy.md b/lsp/src/htmx/attributes/loading-states/data-loading-aria-busy.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-aria-busy.md rename to lsp/src/htmx/attributes/loading-states/data-loading-aria-busy.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-class-remove.md b/lsp/src/htmx/attributes/loading-states/data-loading-class-remove.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-class-remove.md rename to lsp/src/htmx/attributes/loading-states/data-loading-class-remove.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-class.md b/lsp/src/htmx/attributes/loading-states/data-loading-class.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-class.md rename to lsp/src/htmx/attributes/loading-states/data-loading-class.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-delay.md b/lsp/src/htmx/attributes/loading-states/data-loading-delay.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-delay.md rename to lsp/src/htmx/attributes/loading-states/data-loading-delay.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-disable.md b/lsp/src/htmx/attributes/loading-states/data-loading-disable.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-disable.md rename to lsp/src/htmx/attributes/loading-states/data-loading-disable.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-path.md b/lsp/src/htmx/attributes/loading-states/data-loading-path.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-path.md rename to lsp/src/htmx/attributes/loading-states/data-loading-path.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-states.md b/lsp/src/htmx/attributes/loading-states/data-loading-states.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-states.md rename to lsp/src/htmx/attributes/loading-states/data-loading-states.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading-target.md b/lsp/src/htmx/attributes/loading-states/data-loading-target.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading-target.md rename to lsp/src/htmx/attributes/loading-states/data-loading-target.md diff --git a/lsp/src/htmx/hx-ext/loading-states/data-loading.md b/lsp/src/htmx/attributes/loading-states/data-loading.md similarity index 100% rename from lsp/src/htmx/hx-ext/loading-states/data-loading.md rename to lsp/src/htmx/attributes/loading-states/data-loading.md diff --git a/lsp/src/htmx/hx-ext/path-deps/path-deps.md b/lsp/src/htmx/attributes/path-deps/path-deps.md similarity index 100% rename from lsp/src/htmx/hx-ext/path-deps/path-deps.md rename to lsp/src/htmx/attributes/path-deps/path-deps.md diff --git a/lsp/src/htmx/hx-ext/preload/preload-images.md b/lsp/src/htmx/attributes/preload/preload-images.md similarity index 100% rename from lsp/src/htmx/hx-ext/preload/preload-images.md rename to lsp/src/htmx/attributes/preload/preload-images.md diff --git a/lsp/src/htmx/hx-ext/preload/preload.md b/lsp/src/htmx/attributes/preload/preload.md similarity index 100% rename from lsp/src/htmx/hx-ext/preload/preload.md rename to lsp/src/htmx/attributes/preload/preload.md diff --git a/lsp/src/htmx/hx-ext/remove-me/remove-me.md b/lsp/src/htmx/attributes/remove-me/remove-me.md similarity index 100% rename from lsp/src/htmx/hx-ext/remove-me/remove-me.md rename to lsp/src/htmx/attributes/remove-me/remove-me.md diff --git a/lsp/src/htmx/hx-ext/response-targets/hx-target-error.md b/lsp/src/htmx/attributes/response-targets/hx-target-error.md similarity index 100% rename from lsp/src/htmx/hx-ext/response-targets/hx-target-error.md rename to lsp/src/htmx/attributes/response-targets/hx-target-error.md diff --git a/lsp/src/htmx/hx-ext/sse/sse-connect.md b/lsp/src/htmx/attributes/sse/sse-connect.md similarity index 100% rename from lsp/src/htmx/hx-ext/sse/sse-connect.md rename to lsp/src/htmx/attributes/sse/sse-connect.md diff --git a/lsp/src/htmx/hx-ext/sse/sse-swap.md b/lsp/src/htmx/attributes/sse/sse-swap.md similarity index 100% rename from lsp/src/htmx/hx-ext/sse/sse-swap.md rename to lsp/src/htmx/attributes/sse/sse-swap.md diff --git a/lsp/src/htmx/hx-ext/ws/ws-connect.md b/lsp/src/htmx/attributes/ws/ws-connect.md similarity index 100% rename from lsp/src/htmx/hx-ext/ws/ws-connect.md rename to lsp/src/htmx/attributes/ws/ws-connect.md diff --git a/lsp/src/htmx/hx-ext/ws/ws-send.md b/lsp/src/htmx/attributes/ws/ws-send.md similarity index 100% rename from lsp/src/htmx/hx-ext/ws/ws-send.md rename to lsp/src/htmx/attributes/ws/ws-send.md diff --git a/lsp/src/htmx/mod.rs b/lsp/src/htmx/mod.rs index f9025eb..5e33c10 100644 --- a/lsp/src/htmx/mod.rs +++ b/lsp/src/htmx/mod.rs @@ -81,51 +81,51 @@ pub fn hx_hover(text_params: TextDocumentPositionParams) -> Option pub static HX_EXTENSIONS: phf::Map<&'static str, &'static [HxCompletion]> = phf::phf_map! { "class-tools" => build_completion![ - ("classes", "./hx-ext/class-tools/classes.md") + ("classes", "./attributes/class-tools/classes.md") ] as &[_], "client-side-templates" => build_completion![ - ("handlebars-template", "./hx-ext/client-side-templates/handlebars-template.md"), - ("mustache-template", "./hx-ext/client-side-templates/mustache-template.md"), - ("nunjucks-template", "./hx-ext/client-side-templates/nunjucks-template.md"), - ("xslt-template", "./hx-ext/client-side-templates/xslt-template.md") + ("handlebars-template", "./attributes/client-side-templates/handlebars-template.md"), + ("mustache-template", "./attributes/client-side-templates/mustache-template.md"), + ("nunjucks-template", "./attributes/client-side-templates/nunjucks-template.md"), + ("xslt-template", "./attributes/client-side-templates/xslt-template.md") ] as &[_], "head-support" => build_completion![ - ("hx-head", "./hx-ext/head-support/hx-head.md") + ("hx-head", "./attributes/head-support/hx-head.md") ] as &[_], "include-vals" => build_completion![ - ("include-vals", "./hx-ext/include-vals/include-vals.md") + ("include-vals", "./attributes/include-vals/include-vals.md") ] as &[_], "loading-states" => build_completion![ - ("data-loading", "./hx-ext/loading-states/data-loading.md"), - ("data-loading-target", "./hx-ext/loading-states/data-loading-target.md"), - ("data-loading-states", "./hx-ext/loading-states/data-loading-states.md"), - ("data-loading-path", "./hx-ext/loading-states/data-loading-path.md"), - ("data-loading-disable", "./hx-ext/loading-states/data-loading-disable.md"), - ("data-loading-delay", "./hx-ext/loading-states/data-loading-delay.md"), - ("data-loading-class", "./hx-ext/loading-states/data-loading-class.md"), - ("data-loading-class-remove", "./hx-ext/loading-states/data-loading-class-remove.md"), - ("data-loading-aria-busy", "./hx-ext/loading-states/data-loading-aria-busy.md") + ("data-loading", "./attributes/loading-states/data-loading.md"), + ("data-loading-target", "./attributes/loading-states/data-loading-target.md"), + ("data-loading-states", "./attributes/loading-states/data-loading-states.md"), + ("data-loading-path", "./attributes/loading-states/data-loading-path.md"), + ("data-loading-disable", "./attributes/loading-states/data-loading-disable.md"), + ("data-loading-delay", "./attributes/loading-states/data-loading-delay.md"), + ("data-loading-class", "./attributes/loading-states/data-loading-class.md"), + ("data-loading-class-remove", "./attributes/loading-states/data-loading-class-remove.md"), + ("data-loading-aria-busy", "./attributes/loading-states/data-loading-aria-busy.md") ] as &[_], "path-deps" => build_completion![ - ("path-deps", "./hx-ext/path-deps/path-deps.md") + ("path-deps", "./attributes/path-deps/path-deps.md") ] as &[_], "preload" => build_completion![ - ("preload", "./hx-ext/preload/preload.md"), - ("preload-images", "./hx-ext/preload/preload-images.md") + ("preload", "./attributes/preload/preload.md"), + ("preload-images", "./attributes/preload/preload-images.md") ] as &[_], "remove-me" => build_completion![ - ("remove-me", "./hx-ext/remove-me/remove-me.md") + ("remove-me", "./attributes/remove-me/remove-me.md") ] as &[_], "response-targets" => build_completion![ - ("hx-target-error", "./hx-ext/response-targets/hx-target-error.md") + ("hx-target-error", "./attributes/response-targets/hx-target-error.md") ] as &[_], "ws" => build_completion![ - ("ws-connect", "./hx-ext/ws/ws-connect.md"), - ("ws-send", "./hx-ext/ws/ws-send.md") + ("ws-connect", "./attributes/ws/ws-connect.md"), + ("ws-send", "./attributes/ws/ws-send.md") ] as &[_], "sse" => build_completion![ - ("sse-connect", "./hx-ext/sse/sse-connect.md"), - ("sse-swap", "./hx-ext/sse/sse-swap.md") + ("sse-connect", "./attributes/sse/sse-connect.md"), + ("sse-swap", "./attributes/sse/sse-swap.md") ] as &[_], "ajax-header" => build_completion![