Skip to content

[PLUGIN REQUEST] yaml-companion.nvim #3328

@atimofeev

Description

@atimofeev
Field Description
Plugin yaml-companion.nvim
Homepage yaml-companion.nvim
Nixpkgs false

Extra Information

This plugin is crucial for work with kubernetes manifests, as yamlls has no implementation for schema auto-detection.

I've tried manually adding this plugin, but I can't figure out how to resolve dependencies with new plugin build system (#2789).

  extraPlugins = [
    (pkgs.vimUtils.buildVimPlugin {
      name = "yaml-companion.nvim";
      src = pkgs.fetchFromGitHub {
        owner = "someone-stole-my-name";
        repo = "yaml-companion.nvim";
        rev = "131b0d67bd2e0f1a02e0daf2f3460482221ce3c0";
        hash = "sha256-49498W7Hadju54Vi9oOnlNouujhnS8hLQ7ji/3cvIZg=";
      };
    })
  ];

  extraConfigLuaPost = # lua
    ''
      local cfg = require("yaml-companion").setup(opts)
      require("lspconfig")["yamlls"].setup(cfg)
      require("telescope").load_extension("yaml_schema")'';
v
warning: Git tree '/home/atimofeev/repos/nixvim-config' is dirty
error: builder for '/nix/store/1j1ib2m4pj0cabcxxvrhflwyk1s6ckjx-vimplugin-yaml-companion.nvim.drv' failed with exit code 1;
       last 25 log lines:
       > :Failed to require module: yaml-companion.config
       >
       > ======================================================
       > Require check succeeded for the following modules:
       >   - yaml-companion.log
       >   - yaml-companion._matchers.init
       >   - yaml-companion.lsp.handler
       >   - yaml-companion.lsp.util
       >   - yaml-companion.lsp.requests
       >   - yaml-companion.builtin.cloud_init.init
       >   - yaml-companion.builtin.kubernetes.version
       >   - yaml-companion.builtin.kubernetes.resources
       >   - yaml-companion.builtin.kubernetes.init
       >   - yaml-companion.select.ui
       >   - yaml-companion
       >   - yaml-companion.health
       > All lua modules were checked.
       >
       > Require check failed for the following modules:
       >   - yaml-companion.context.init
       >   - yaml-companion.schema
       >   - yaml-companion.config
       >
       > Checkout https://nixos.org/manual/nixpkgs/unstable/#testing-neovim-plugins-neovim-require-check
       > ======================================================
       For full logs, run 'nix log /nix/store/1j1ib2m4pj0cabcxxvrhflwyk1s6ckjx-vimplugin-yaml-companion.nvim.drv'.
error: 1 dependencies of derivation '/nix/store/z2wvk4jngychf628sh02nmrmd80vng37-neovim-0.11.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i96cdbq70180m174ydkjc9ybdkl0zmsi-nixvim.drv' failed to build

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

In progress 🚀

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions