Thomas 2 年之前
父節點
當前提交
6a1c9eb6bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lua/cspell/helpers.lua

+ 1 - 1
lua/cspell/helpers.lua

@@ -46,7 +46,7 @@ M.create_cspell_json = function(params)
 
     local cspell_json_str = encode_json(cspell_json)
     -- local cspell_json_file_path = require("null-ls.utils").path.join(params.cwd, config_file_preferred_name)
-    local cspell_json_file_path = "~/.config/cspell/cspell.json"
+    local cspell_json_file_path = os.getenv('HOME').."/.config/cspell/cspell.json"
 
     Path:new(cspell_json_file_path):write(cspell_json_str, "w")
     vim.notify("Created a new cspell.json file at " .. cspell_json_file_path, vim.log.levels.INFO)