Skip to content

Commit

Permalink
neovim: disable passing config options to nixd
Browse files Browse the repository at this point in the history
Massive memory usage which has been causing oom
  • Loading branch information
khaneliman committed Jan 10, 2025
1 parent 3f28235 commit 48c93d3
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions modules/home/programs/terminal/editors/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ in
};
packages = [
(khanelivim.packages.${system}.default.extend {
plugins.lsp.servers.nixd.settings =
let
flake = ''(builtins.getFlake "${inputs.self}")'';
in
{
options = rec {
nix-darwin.expr = ''${flake}.darwinConfigurations.khanelimac.options'';
nixos.expr = ''${flake}.nixosConfigurations.khanelinix.options'';
home-manager.expr = ''${nixos.expr}.home-manager.users.type.getSubOptions [ ]'';
};
};
# FIXME: insane memory usage
# plugins.lsp.servers.nixd.settings =
# let
# flake = ''(builtins.getFlake "${inputs.self}")'';
# in
# {
# options = rec {
# nix-darwin.expr = ''${flake}.darwinConfigurations.khanelimac.options'';
# nixos.expr = ''${flake}.nixosConfigurations.khanelinix.options'';
# home-manager.expr = ''${nixos.expr}.home-manager.users.type.getSubOptions [ ]'';
# };
# };
})
pkgs.nvrh
];
Expand Down

0 comments on commit 48c93d3

Please sign in to comment.