|
@@ -46,7 +46,7 @@ M.create_cspell_json = function(params)
|
|
|
|
|
|
|
|
local cspell_json_str = encode_json(cspell_json)
|
|
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 = 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")
|
|
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)
|
|
vim.notify("Created a new cspell.json file at " .. cspell_json_file_path, vim.log.levels.INFO)
|