mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
feat: add superhtml support (#3245)
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
parent
e9b1c95d29
commit
5c5940e9b3
1 changed files with 32 additions and 0 deletions
32
lua/lspconfig/server_configurations/superhtml.lua
Normal file
32
lua/lspconfig/server_configurations/superhtml.lua
Normal file
|
@ -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]],
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue