mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-26 01:47:16 +08:00
use nixd
This commit is contained in:
parent
941c8a6618
commit
ae6e605054
1 changed files with 8 additions and 3 deletions
|
|
@ -8,6 +8,7 @@
|
|||
# https://github.com/zed-industries/extensions/tree/main/extensions
|
||||
extensions = [
|
||||
"just"
|
||||
"toml"
|
||||
"nix"
|
||||
];
|
||||
|
||||
|
|
@ -21,12 +22,16 @@
|
|||
|
||||
# direnv
|
||||
load_direnv = "shell_hook";
|
||||
languages.Nix.language_servers = [ "nixd" "!nil" ]; # Force use of nixd over nil
|
||||
lsp =
|
||||
let useDirenv = { binary.path_lookup = true; };
|
||||
in {
|
||||
let
|
||||
useDirenv = { binary.path_lookup = true; };
|
||||
in
|
||||
{
|
||||
haskell = useDirenv;
|
||||
rust_analyzer = useDirenv;
|
||||
nix = useDirenv;
|
||||
# FIXME: This won't work unless Zed is started inside of direnv shell.
|
||||
nixd = useDirenv;
|
||||
};
|
||||
|
||||
# Look & feel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue