Skip to content

"rust-analyzer does not have a configuration" #1599

@dr-kernel

Description

@dr-kernel

I recently updated to NeoVim 0.11 and LSP keeps throwing this error: "rust-analyzer does not have a configuration". Not sure what that mean? What configuration is it looking for other than settings?

            settings = {
                ["rust-analyzer"] = {
                    cargo = {
                        extraEnv = { CARGO_TARGET_DIR = ".ra_target" },
                        features = "all",
                    },
                    check = {
                        features = "all",
                    },

could it possibly be this workaround to prevent mason from installing rust-analyzer?

        "neovim/nvim-lspconfig",
        opts = {
            setup = {
                rust_analyzer = function()
                    return true
                end,
            },
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions