-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
4 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
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,37 @@ | ||
---@type dotvim.core.package.PackageOption | ||
return { | ||
name = "extra.languages.json", | ||
deps = { | ||
"coding", | ||
"editor", | ||
"lsp", | ||
"treesitter", | ||
}, | ||
plugins = { | ||
{ | ||
"nvim-treesitter", | ||
opts = function(_, opts) | ||
if type(opts.ensure_installed) == "table" then | ||
vim.list_extend(opts.ensure_installed, { "json", "jsonc", "jsonnet" }) | ||
end | ||
end, | ||
}, | ||
{ | ||
"b0o/schemastore.nvim", | ||
lazy = true, | ||
}, | ||
{ | ||
"nvim-lspconfig", | ||
opts = function(_, opts) | ||
opts.servers.opts.jsonls = { | ||
settings = { | ||
json = { | ||
schemas = require("schemastore").json.schemas(), | ||
validate = { enable = true }, | ||
}, | ||
}, | ||
} | ||
end, | ||
}, | ||
}, | ||
} |
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,43 @@ | ||
---@type dotvim.core.package.PackageOption | ||
return { | ||
name = "extra.languages.yaml", | ||
deps = { | ||
"coding", | ||
"editor", | ||
"lsp", | ||
"treesitter", | ||
}, | ||
plugins = { | ||
{ | ||
"nvim-treesitter", | ||
opts = function(_, opts) | ||
if type(opts.ensure_installed) == "table" then | ||
vim.list_extend(opts.ensure_installed, { "yaml" }) | ||
end | ||
end, | ||
}, | ||
{ | ||
"b0o/schemastore.nvim", | ||
lazy = true, | ||
}, | ||
{ | ||
"nvim-lspconfig", | ||
opts = function(_, opts) | ||
opts.servers.opts.yamlls = { | ||
settings = { | ||
yaml = { | ||
schemaStore = { | ||
-- You must disable built-in schemaStore support if you want to use | ||
-- this plugin and its advanced options like `ignore`. | ||
enable = false, | ||
-- Avoid TypeError: Cannot read properties of undefined (reading 'length') | ||
url = "", | ||
}, | ||
schemas = require("schemastore").yaml.schemas(), | ||
}, | ||
}, | ||
} | ||
end, | ||
}, | ||
}, | ||
} |
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