Thomas 2 years ago
parent
commit
2529cbc4be
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lua/cspell/helpers.lua

+ 2 - 1
lua/cspell/helpers.lua

@@ -114,7 +114,8 @@ M.get_cspell_config = function(params)
 
     -- local cspell_json_path = M.get_config_path(params)
     -- local cspell_json_path = "~/.config/cspell/cspell.json"
-  local cspell_json_path = vim.fn.expand('$HOME/.config/cspell/cspell.json')
+  local home = os.getenv('HOME')
+  local cspell_json_path = home..'/.config/cspell/cspell.json'
 
     -- if cspell_json_path == nil or cspell_json_path == "" then
     --     return