Skip to content

zed-extensions/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix

Nix language support in Zed

Configuration

Configure Nixd

Options: https://github.com/nix-community/nixd/blob/main/nixd/docs/configuration.md

settings.json

{
	"lsp": {
		"nixd": {
			"settings": {
				"diagnostic": {
					"suppress": [ "sema-extra-with" ]
				}
			}
		}
	}
}

Configure Nil

Options: https://github.com/oxalica/nil/blob/main/docs/configuration.md

settings.json

{
	"lsp": {
		"nil": {
			"settings": {
 				"diagnostics": {
					"ignored": [ "unused_binding" ]
				}
			}
		}
	}
}

Only use Nixd

settings.json

{
	"languages": {
		"Nix": {
			"language_servers": [ "nixd", "!nil" ],
		}
	}
}

Only use Nil

settings.json

{
	"languages": {
		"Nix": {
			"language_servers": [ "nil", "!nixd" ],
		}
	}
}