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

@ -0,0 +1,3 @@
pub fn keybinding_path() -> Result<std::path::PathBuf, nu_errors::ShellError> {
crate::config::default_path_for(&Some(std::path::PathBuf::from("keybindings.yml")))
}

View File

@ -2,6 +2,7 @@ pub mod base;
pub mod command;
pub mod config;
pub mod dict;
pub mod keybinding;
pub mod primitive;
pub mod types;
pub mod utils;