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

Surely a daft question - I need to ask anyway #38

Open
EdmundsEcho opened this issue Aug 3, 2023 · 0 comments
Open

Surely a daft question - I need to ask anyway #38

EdmundsEcho opened this issue Aug 3, 2023 · 0 comments

Comments

@EdmundsEcho
Copy link

I have schemas up and running. It's a first for me in my nearly years of using neovim. I'm looking forward to being a bit more deterministic with the schema selection.

To that end, I understand what Telescope is although I don't use it much other than it being a dependency for other lua plugins (I'm still liking ctrp). Part of the need for Telescope in my understanding, is not being able to name each schema (the [schema_location:file_pattern] spec for configuring schemas seems to not support a map instead of an array).

So the question, how am I supposed to manually select a schema for a given buffer using Telescope?

I also have lualine up and running. It displays the active lsp. I can't seem to get the active schema to show-up using the function supplied in this repo's docs. This is clearly a separate question as it requires your confidence in my having configured companion correctly.

require("mason-lspconfig").setup_handlers({
    function(lsp)
        ...   
    end,
    ["yamlls"] = function()
        local yamlconfig = require("yaml-companion").setup({})
        lspconfig["yamlls"].setup(yamlconfig)
    end,
})
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