plugins/rust-tools: remove with lib and helpers

This commit is contained in:
Austin Horstman 2024-10-22 20:37:17 -05:00
parent 32969847d3
commit 876ca32451
No known key found for this signature in database
4 changed files with 41 additions and 39 deletions

View file

@ -109,7 +109,7 @@ let
settings = cfg: { pylsp = cfg; };
};
rust_analyzer = {
settingsOptions = import ./rust-analyzer-config.nix lib helpers;
settingsOptions = import ./rust-analyzer-config.nix lib;
settings = cfg: { rust-analyzer = cfg; };
};
ts_ls = {

View file

@ -1,5 +1,5 @@
# TODO: make all the types support raw lua
lib: helpers:
lib:
let
rustAnalyzerOptions = import ../../../generated/rust-analyzer.nix;
@ -60,7 +60,7 @@ let
pluginDefault,
type,
}:
helpers.defaultNullOpts.mkNullable' {
lib.nixvim.defaultNullOpts.mkNullable' {
inherit description pluginDefault;
type = mkRustAnalyzerType type;
};