diff options
| author | Elijah Sauder <24995216+EliSauder@users.noreply.github.com> | 2024-08-01 22:52:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-02 13:52:45 +0800 |
| commit | 5c5940e9b368875a31f1f415e4b0cdd66880cafd (patch) | |
| tree | 27c6af8017aa1ff2516076e7bd2ac698fb582b28 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar.gz nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar.bz2 nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar.lz nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar.xz nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.tar.zst nvim-lspconfig-5c5940e9b368875a31f1f415e4b0cdd66880cafd.zip | |
feat: add superhtml support (#3245)
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/superhtml.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/superhtml.lua b/lua/lspconfig/server_configurations/superhtml.lua new file mode 100644 index 00000000..a22cf338 --- /dev/null +++ b/lua/lspconfig/server_configurations/superhtml.lua @@ -0,0 +1,32 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'superhtml', 'lsp' }, + filetypes = { 'superhtml', 'html' }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/kristoff-it/superhtml + +HTML Language Server & Templating Language Library + +This LSP is designed to tightly adhere to the HTML spec as well as enforcing +some additional rules that ensure HTML clarity. + +If you want to disable HTML support for another HTML LSP, add the following +to your configuration: + +```lua +require'lspconfig'.superhtml.setup { + filetypes = { 'superhtml' } +} +``` + ]], + default_config = { + root_dir = [[util.find_git_ancestor]], + }, + }, +} |
