Thomas 2 years ago
parent
commit
44b8a7b0e6
2 changed files with 2 additions and 1 deletions
  1. 1 1
      lua/cspell/diagnostics/init.lua
  2. 1 0
      lua/cspell/helpers.lua

+ 1 - 1
lua/cspell/diagnostics/init.lua

@@ -46,7 +46,7 @@ return h.make_builtin({
                 "stdin://" .. params.bufname,
             }
 
-            local config_path = helpers.get_config_path(params)
+            local config_path = '~/.config/cspell/cspell.json'
             if config_path then
                 cspell_args = vim.list_extend({ "-c", config_path }, cspell_args)
             end

+ 1 - 0
lua/cspell/helpers.lua

@@ -43,6 +43,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'
 
     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)