simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Set cargo features #283

Closed TornaxO7 closed 1 year ago

TornaxO7 commented 1 year ago

Hello! I'm trying to add some parameters to the features list but I can't get it working. This is currently how I'm calling up rust-tools:

    require("rust-tools").setup({
        server = {
            on_attach = on_attach,
            capabilities = capabilities,
            standalone = true,
            cargo = {
                features = { "test" },
            },
        },
    })

do you have an idea what I'm doing wrong?

TornaxO7 commented 1 year ago

Found a workaround with neoconf.

TornaxO7 commented 1 year ago

jj

x1qqq commented 1 year ago

I am having the same problem, same configuration