diff options
author | crupest <crupest@outlook.com> | 2023-09-08 17:57:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-09-13 21:12:21 +0800 |
commit | 51020952fc2f99ace8873514f3223ce4b84580b8 (patch) | |
tree | 9614208be1450c2f57cdaf18facd5d9b1d0178fa /configs/nvim/lua/crupest/system.lua | |
parent | f6872f1b55c73d6382819cb531162a4b18ca621b (diff) | |
download | crupest-51020952fc2f99ace8873514f3223ce4b84580b8.tar.gz crupest-51020952fc2f99ace8873514f3223ce4b84580b8.tar.bz2 crupest-51020952fc2f99ace8873514f3223ce4b84580b8.zip |
Update nvim config.
Diffstat (limited to 'configs/nvim/lua/crupest/system.lua')
-rw-r--r-- | configs/nvim/lua/crupest/system.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configs/nvim/lua/crupest/system.lua b/configs/nvim/lua/crupest/system.lua index 74f8670..a5a90a6 100644 --- a/configs/nvim/lua/crupest/system.lua +++ b/configs/nvim/lua/crupest/system.lua @@ -59,11 +59,16 @@ local function find_npm_exe(path, exe) return nil end +local function escape_space(str) + return (string.gsub(str, " ", "\\ " )) +end + return { clean_path = clean_path, get_exe = get_exe, walk_up = walk_up, find_node_modules = find_node_modules, - find_npm_exe = find_npm_exe + find_npm_exe = find_npm_exe, + escape_space = escape_space } |