fix: use the correct API for the log-viewer (#1564)

This commit is contained in:
kylo252 2021-09-17 08:29:35 +02:00 committed by GitHub
parent d610502f91
commit 9257e68c05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -198,16 +198,16 @@ M.config = function()
"<cmd>lua require('core.terminal').toggle_log_view('lunarvim')<cr>",
"view default log",
},
D = { "<cmd>edit ~/.cache/nvim/lunarvim.log<cr>", "Open the default logfile" },
D = { "<cmd>exe 'edit '.stdpath('cache').'/lunarvim.log'<cr>", "Open the default logfile" },
n = { "<cmd>lua require('core.terminal').toggle_log_view('lsp')<cr>", "view lsp log" },
N = { "<cmd>edit ~/.cache/nvim/log<cr>", "Open the Neovim logfile" },
N = { "<cmd>edit $NVIM_LOG_FILE<cr>", "Open the Neovim logfile" },
l = { "<cmd>lua require('core.terminal').toggle_log_view('nvim')<cr>", "view neovim log" },
L = { "<cmd>edit ~/.cache/nvim/lsp.log<cr>", "Open the LSP logfile" },
L = { "<cmd>exe 'edit '.stdpath('cache').'/lsp.log'<cr>", "Open the LSP logfile" },
p = {
"<cmd>lua require('core.terminal').toggle_log_view('packer.nvim')<cr>",
"view packer log",
},
P = { "<cmd>edit ~/.cache/nvim/packer.nvim.log<cr>", "Open the Packer logfile" },
P = { "<cmd>exe 'edit '.stdpath('cache').'/packer.nvim.log'<cr>", "Open the Packer logfile" },
},
r = { "<cmd>lua require('utils').reload_lv_config()<cr>", "Reload configurations" },
},