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

Help setup with nixld and Neovim #214

Open
minizilla opened this issue Jul 3, 2024 · 0 comments
Open

Help setup with nixld and Neovim #214

minizilla opened this issue Jul 3, 2024 · 0 comments

Comments

@minizilla
Copy link
Member

Description

I'm using Neovim with the following setup

local nvim_lsp = require("lspconfig")
nvim_lsp.nixd.setup({
   cmd = { "nixd" },
   settings = {
      nixd = {
         formatting = {
            command = { "nixfmt" },
         },
      },
   },
})

When try to format the nix file, nothing happened, no formatting, check with nixfmt -c flake.nix also report flake.nix: not formatted.

Previously I'm using nixpkgs-fmt, the formatter is worked well.
Can you help me how to setup nixfmt with nixld and Neovim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant