diff --git a/lua/lspconfig/server_configurations/ziggy.lua b/lua/lspconfig/server_configurations/ziggy.lua new file mode 100644 index 0000000000..4ca58fb346 --- /dev/null +++ b/lua/lspconfig/server_configurations/ziggy.lua @@ -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]], + }, + }, +} diff --git a/lua/lspconfig/server_configurations/ziggy_schema.lua b/lua/lspconfig/server_configurations/ziggy_schema.lua new file mode 100644 index 0000000000..2bd01cc8ff --- /dev/null +++ b/lua/lspconfig/server_configurations/ziggy_schema.lua @@ -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]], + }, + }, +}