move keybinding_path to nu-data (#2927)

This commit is contained in:
Anders Rasmussen
2021-01-14 04:31:47 +11:00
committed by GitHub
parent a9441d670e
commit ebc4694e05
6 changed files with 10 additions and 7 deletions

View File

@ -47,7 +47,7 @@ pub fn nu(env: &IndexMap<String, String>, tag: impl Into<Tag>) -> Result<Value,
#[cfg(feature = "rustyline-support")]
{
let keybinding_path = crate::keybinding::keybinding_path()?;
let keybinding_path = nu_data::keybinding::keybinding_path()?;
nu_dict.insert_value(
"keybinding-path",
UntaggedValue::filepath(keybinding_path).into_value(&tag),