diff options
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/htmx.lua')
-rw-r--r-- | start/lspconfig-0.1.8/lua/lspconfig/server_configurations/htmx.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/htmx.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/htmx.lua new file mode 100644 index 0000000..26611b7 --- /dev/null +++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/htmx.lua @@ -0,0 +1,24 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'htmx-lsp' }, + filetypes = { 'html', 'templ' }, + single_file_support = true, + root_dir = function(fname) + return util.find_git_ancestor(fname) + end, + }, + docs = { + description = [[ +https://github.com/ThePrimeagen/htmx-lsp + +`htmx-lsp` can be installed via `cargo`: +```sh +cargo install htmx-lsp +``` + +Lsp is still very much work in progress and experimental. Use at your own risk. +]], + }, +} |