diff options
author | crupest <crupest@outlook.com> | 2023-09-29 08:20:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-09-29 08:20:18 +0800 |
commit | 84fa5a349153130cad3d974976828d4d43997ac0 (patch) | |
tree | f41233b3a888abd2fabdced5eaccb9f80acbc18b | |
parent | de76d1cf7bcc8e7bb85acc76ea6d4e2b6d6d16b8 (diff) | |
download | crupest-84fa5a349153130cad3d974976828d4d43997ac0.tar.gz crupest-84fa5a349153130cad3d974976828d4d43997ac0.tar.bz2 crupest-84fa5a349153130cad3d974976828d4d43997ac0.zip |
Update nvim config. Fix path slash problem.
-rw-r--r-- | configs/nvim/init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/nvim/init.lua b/configs/nvim/init.lua index 58a59f5..1944c46 100644 --- a/configs/nvim/init.lua +++ b/configs/nvim/init.lua @@ -35,6 +35,10 @@ vim.opt.expandtab = true; vim.opt.wrap = false; vim.opt.number = true; +if is_win then + vim.opt.shellslash = true +end + -- Init lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.uv.fs_stat(lazypath) then @@ -390,7 +394,6 @@ end, { complete = "file" }) - vim.api.nvim_create_user_command("Rename", function(opts) require("crupest.nvim").rename_buf_file(vim.api.nvim_get_current_buf(), opts.fargs[1]) end, { |