Modules/Neovim: Update nixd lsp options (home-manager opts now found!)
This commit is contained in:
@ -973,6 +973,11 @@ in {
|
|||||||
# {name = "nil_ls";} # Conflicts with nixd's hover
|
# {name = "nil_ls";} # Conflicts with nixd's hover
|
||||||
{
|
{
|
||||||
name = "nixd";
|
name = "nixd";
|
||||||
|
extraOptions.cmd = [
|
||||||
|
"nixd"
|
||||||
|
"--inlay-hints=false"
|
||||||
|
"--semantic-tokens=true"
|
||||||
|
];
|
||||||
extraOptions.settings = {
|
extraOptions.settings = {
|
||||||
nixd = {
|
nixd = {
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@ -985,10 +990,16 @@ in {
|
|||||||
nixos = {
|
nixos = {
|
||||||
expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.${hostname}.options";
|
expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.${hostname}.options";
|
||||||
};
|
};
|
||||||
# When using HM as a NixOS module, nixd's HM option completion doesn't work.
|
|
||||||
# home_manager = {
|
# For HM standalone
|
||||||
|
# home-manager = {
|
||||||
# expr = "(builtins.getFlake \"/home/${username}/NixFlake\").homeConfigurations.\"${username}@${hostname}\".options";
|
# expr = "(builtins.getFlake \"/home/${username}/NixFlake\").homeConfigurations.\"${username}@${hostname}\".options";
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
# For HM NixOS module
|
||||||
|
home-manager = {
|
||||||
|
expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.\"${hostname}\".options.home-manager.users.type.getSubOptions []";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
diagnostic = {
|
diagnostic = {
|
||||||
suppress = [
|
suppress = [
|
||||||
|
|||||||
Reference in New Issue
Block a user