Skip to content

Commit

Permalink
feat(ziggy): add ziggy and ziggy_schema support (#3296)
Browse files Browse the repository at this point in the history
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
rockorager authored Sep 10, 2024
1 parent 5ac3e19 commit 436aad9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/lspconfig/server_configurations/ziggy.lua
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]],
},
},
}
21 changes: 21 additions & 0 deletions lua/lspconfig/server_configurations/ziggy_schema.lua
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]],
},
},
}

0 comments on commit 436aad9

Please sign in to comment.