From lsp
Nixd language server for Nix — diagnostics, completions, go-to-definition, and find references for .nix files.
Ships in lsp. Installing the plugin adds it to Claude Code.
This LSP server requires nixd to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"nixd": {
"command": "nixd",
"extensionToLanguage": {
".nix": "nix"
}
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
nixdstdioInitialization options and workspace settings
Initialization Options:
{
"formatting": {
"command": [
"nixfmt"
]
}
}7-day visitors to each server page
npx claudepluginhub mattrobenolt/pi-configs --plugin lsp