Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure yamlls at a workspace level for neovim? #961

Open
V4G4X opened this issue Apr 21, 2024 · 0 comments
Open

How to configure yamlls at a workspace level for neovim? #961

V4G4X opened this issue Apr 21, 2024 · 0 comments

Comments

@V4G4X
Copy link

V4G4X commented Apr 21, 2024

Summary

I mainly work with 2 types of YAML files. (In two separate projects)

  1. Cloudformation Templates
  2. OpenAPI 3.0.0 specs

And the inbuilt validator doesn't work too well with these. So I wanted to disable yamlls' validator for these two projects.

But the best I was able to do was disable it in my nvim-config, far from an ideal solution.

    lspconfig.yamlls.setup({
        settings = {
            yaml = {
                validate = false,
            }
        }
    })

I also tried configuring .vim/settings.json but that had no effect.
Please let me know how to configure this (or any other) LSP at a workspace level.

P.S: If it's possible to also specifically provide cloudformation schema or OpenAPI schemas for particular files/folders, that would be great!
But I digress.

Relevant information

yaml-language-server:

installed version 1.14.0
Path: /Users/<username>/.local/share/nvim/mason/bin/yaml-language-server --stdio

neovim:

NVIM v0.10.0-dev-2961+g4d52b0cf6
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant