File logging (#1053)

* add file logging infrastructure

* log git runner operations

* log configuration and mappings

* document file logging infrastructure

* style fixes

* stylua fixes

* document log file locations
This commit is contained in:
Alexander Courtis
2022-03-07 18:44:37 +11:00
committed by GitHub
parent 0816064a8b
commit 19075f41e8
6 changed files with 148 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
local a = vim.api
local lib = require "nvim-tree.lib"
local log = require "nvim-tree.log"
local view = require "nvim-tree.view"
local util = require "nvim-tree.utils"
local nvim_tree_callback = require("nvim-tree.config").nvim_tree_callback
@@ -231,6 +232,9 @@ function M.setup(opts)
else
M.mappings = merge_mappings(options.list)
end
log.line("config", "active mappings")
log.raw("config", "%s\n", vim.inspect(M.mappings))
end
return M