-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ziggy): add ziggy and ziggy_schema support (#3296)
Add support for the Ziggy data serialization format language server. The server supports both the ziggy file format and the schema format
- Loading branch information
1 parent
5ac3e19
commit 436aad9
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local util = require 'lspconfig.util' | ||
|
||
return { | ||
default_config = { | ||
cmd = { 'ziggy', 'lsp' }, | ||
filetypes = { 'ziggy' }, | ||
root_dir = util.find_git_ancestor, | ||
single_file_support = true, | ||
}, | ||
docs = { | ||
description = [[ | ||
https://ziggy-lang.io/documentation/ziggy-lsp/ | ||
Language server for the Ziggy data serialization format | ||
]], | ||
default_config = { | ||
root_dir = [[util.find_git_ancestor]], | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local util = require 'lspconfig.util' | ||
|
||
return { | ||
default_config = { | ||
cmd = { 'ziggy', 'lsp', '--schema' }, | ||
filetypes = { 'ziggy_schema' }, | ||
root_dir = util.find_git_ancestor, | ||
single_file_support = true, | ||
}, | ||
docs = { | ||
description = [[ | ||
https://ziggy-lang.io/documentation/ziggy-lsp/ | ||
Language server for schema files of the Ziggy data serialization format | ||
]], | ||
default_config = { | ||
root_dir = [[util.find_git_ancestor]], | ||
}, | ||
}, | ||
} |