Skip to content

Commit

Permalink
fix(core): missing leading path separator (#1301)
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
  • Loading branch information
Jint-lzxy authored Jun 20, 2024
1 parent 64e85d1 commit c42151f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ local global = require("core.global")
-- Create cache dir and data dirs
local createdir = function()
local data_dirs = {
global.cache_dir .. "backup",
global.cache_dir .. "session",
global.cache_dir .. "swap",
global.cache_dir .. "tags",
global.cache_dir .. "undo",
global.cache_dir .. "/backup",
global.cache_dir .. "/session",
global.cache_dir .. "/swap",
global.cache_dir .. "/tags",
global.cache_dir .. "/undo",
}
-- Only check whether cache_dir exists, this would be enough.
if vim.fn.isdirectory(global.cache_dir) == 0 then
Expand Down
10 changes: 5 additions & 5 deletions lua/core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ local global = require("core.global")

local function load_options()
local global_local = {
-- backupdir = global.cache_dir .. "backup/",
-- directory = global.cache_dir .. "swap/",
-- spellfile = global.cache_dir .. "spell/en.uft-8.add",
-- viewdir = global.cache_dir .. "view/",
-- backupdir = global.cache_dir .. "/backup/",
-- directory = global.cache_dir .. "/swap/",
-- spellfile = global.cache_dir .. "/spell/en.uft-8.add",
-- viewdir = global.cache_dir .. "/view/",
autoindent = true,
autoread = true,
autowrite = true,
Expand Down Expand Up @@ -84,7 +84,7 @@ local function load_options()
timeoutlen = 300,
ttimeout = true,
ttimeoutlen = 0,
undodir = global.cache_dir .. "undo/",
undodir = global.cache_dir .. "/undo/",
undofile = true,
-- Please do NOT set `updatetime` to above 500, otherwise most plugins may not function correctly
updatetime = 200,
Expand Down

0 comments on commit c42151f

Please sign in to comment.