From 1e0d8f8d4284845c7c15ab968a4104a7ec04a830 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 10 May 2022 14:15:51 +1000 Subject: [PATCH] fix: update default path for debug logging --- README.md | 2 +- lua/nvim-biscuits/dev.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec6d032..5654118 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ As we make tailored handlers for specific languages we will create a table here ## Development -While doing local dev, it can be nice to use the `utils.console_log` command to write runtime logs to `~/vim-biscuits.log`. +While doing local dev, it can be nice to use the `utils.console_log` command to write runtime logs to `~/.cache/nvim/nvim-biscuits.log`. You can turn this on by passing DEBUG=true as an environment variable when launching Neovim. diff --git a/lua/nvim-biscuits/dev.lua b/lua/nvim-biscuits/dev.lua index 5e10785..f343205 100644 --- a/lua/nvim-biscuits/dev.lua +++ b/lua/nvim-biscuits/dev.lua @@ -3,7 +3,7 @@ local json = require "vendor.json" local dev = {} -local debug_path = '~/vim-biscuits.log' +local debug_path = vim.fn.stdpath('cache') .. '/nvim-biscuits.log' dev.console_log = function(the_string) Path:new(debug_path):write(json.encode(the_string) .. '\n', 'a')