1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-02 06:19:25 +00:00

[neovim] Fix yaml-companion

This commit is contained in:
2023-11-03 18:48:15 +01:00
parent d5c9273e44
commit fb9748c38d
4 changed files with 47 additions and 42 deletions

View File

@ -179,7 +179,6 @@ require("lazy").setup({
{ "folke/trouble.nvim", cmd = { "TroubleToggle", "Trouble" } },
{ "glepnir/lspsaga.nvim", event = "BufRead" },
{ "arkav/lualine-lsp-progress" },
{ "someone-stole-my-name/yaml-companion.nvim", event = "BufRead" },
-- Telescope
{ "nvim-telescope/telescope.nvim", cmd = "Telescope" },
@ -191,6 +190,32 @@ require("lazy").setup({
{ "sindrets/diffview.nvim" },
{ "f-person/git-blame.nvim" },
-- YAML
{
"someone-stole-my-name/yaml-companion.nvim",
ft = { "yaml" },
opts = {
lspconfig = {
settings = {
redhat = {
telemetry = {
enabled = false,
},
},
-- yaml = {
-- schemas = {
-- ["https://custom/github-workflow.json"] = "/.github/workflows/*",
-- },
-- },
},
},
},
config = function(_, opts)
local cfg = require("yaml-companion").setup(opts)
require("lspconfig")["yamlls"].setup(cfg)
end,
},
-- DAP
{ "mfussenegger/nvim-dap", event = "VeryLazy", version = "0.*" },
{ "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v3.*" },
@ -208,6 +233,9 @@ require("lazy").setup({
ft = { "go", "gomod" },
},
-- Typescript
{ "pmizio/typescript-tools.nvim", opts = {} },
-- Markdown
{ "mzlogin/vim-markdown-toc" },
{