Add VIM_KEYMAP_PATH constant (#23228)

Deduplicates 2 occurrences

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-01-16 04:31:01 -07:00 committed by GitHub
parent 972176a574
commit f51db18b3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -82,8 +82,10 @@ pub fn default_keymap() -> Cow<'static, str> {
asset_str::<SettingsAssets>(DEFAULT_KEYMAP_PATH)
}
pub const VIM_KEYMAP_PATH: &str = "keymaps/vim.json";
pub fn vim_keymap() -> Cow<'static, str> {
asset_str::<SettingsAssets>("keymaps/vim.json")
asset_str::<SettingsAssets>(VIM_KEYMAP_PATH)
}
pub fn initial_user_settings_content() -> Cow<'static, str> {