From 6cde9353ab5b4802089896b0acb8f85b098b1857 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 16 Jan 2025 20:13:22 -0300 Subject: [PATCH] fix(neovim): rename flake option to nixd and set for laptop --- modules/home-manager/programs/neovim/default.nix | 2 +- modules/home-manager/programs/neovim/lsp.nix | 4 ++-- specific/laptop/home-manager.nix | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/programs/neovim/default.nix b/modules/home-manager/programs/neovim/default.nix index fa37c39..224c365 100644 --- a/modules/home-manager/programs/neovim/default.nix +++ b/modules/home-manager/programs/neovim/default.nix @@ -12,7 +12,7 @@ let in { options.programs.neovim = { - flake = { + nixd = { hostname = mkOption { default = "wizdesk"; description = "Your NixOS hostname, needed for nixd lsp."; diff --git a/modules/home-manager/programs/neovim/lsp.nix b/modules/home-manager/programs/neovim/lsp.nix index 077cb15..f65c8f5 100644 --- a/modules/home-manager/programs/neovim/lsp.nix +++ b/modules/home-manager/programs/neovim/lsp.nix @@ -1,7 +1,7 @@ { config, pkgs }: let - hostname = config.programs.neovim.flake.hostname; - location = config.programs.neovim.flake.location; + hostname = config.programs.neovim.nixd.hostname; + location = config.programs.neovim.nixd.location; in #lua '' diff --git a/specific/laptop/home-manager.nix b/specific/laptop/home-manager.nix index cfccf3c..dd25a51 100644 --- a/specific/laptop/home-manager.nix +++ b/specific/laptop/home-manager.nix @@ -106,6 +106,9 @@ # MODULES # # + # Set the hostname for nixd in neovim + programs.neovim.nixd.hostname = "wizlap"; + # Add monitor configuration to hyprland modules.hyprland = { # Enable scripts