aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-09-29 08:20:18 +0800
committercrupest <crupest@outlook.com>2023-09-29 08:20:18 +0800
commit9a9cd716024cb74dd88a5625dd657a099844a56e (patch)
treef41233b3a888abd2fabdced5eaccb9f80acbc18b
parentb4aa11a534a02820a8b23ace07a7dfdd37d7fb1d (diff)
downloadcrupest-9a9cd716024cb74dd88a5625dd657a099844a56e.tar.gz
crupest-9a9cd716024cb74dd88a5625dd657a099844a56e.tar.bz2
crupest-9a9cd716024cb74dd88a5625dd657a099844a56e.zip
Update nvim config. Fix path slash problem.
-rw-r--r--configs/nvim/init.lua5
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, {