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

My LSP client doesn't support confirmation error #131

Open
heitorPB opened this issue Apr 10, 2024 · 2 comments
Open

My LSP client doesn't support confirmation error #131

heitorPB opened this issue Apr 10, 2024 · 2 comments

Comments

@heitorPB
Copy link

I'm trying to setup nil in NeoVim but I'm getting this message whenever I open NeoVim: Your LSP client doesn't support confirmation. You can enable autoArchive in lsp configuration.

Here's my configuration:

autostart = true,
capabilities = caps,
cmd = { "nil" },
settings = {
    ["nil"] = {
      formatting = { command = { "nix fmt" }, },
      nix = { flake = { autoArchive = true }, },
    },
},

Running nil 2023-08-09.

What am I missing here?

@leoperegrino
Copy link

Same thing here

@leoperegrino
Copy link

Ok, I've just managed to solve it thanks to this random git commit I've found on google. The solutions lies in changing the lspconfig parameters of the nil_ls server. Documentation can also be found here.

require('lspconfig').nil_ls.setup {
  settings = {
    nix = {
      flake = {
        -- calls `nix flake archive` to put a flake and its output to store
        autoArchive = true,
      },
    },
  },
}

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

2 participants