aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/log.lua
diff options
context:
space:
mode:
authorPiyush Jaipuriyar <piyushjaipuriyar@gmail.com>2021-02-11 18:25:42 +0530
committerPiyush Jaipuriyar <piyushjaipuriyar@gmail.com>2021-03-06 10:39:40 +0530
commit82c09f7c0b5d19f6f63f2dd126412fc75523f647 (patch)
tree6497a0ff19840f6e6c0ecf618dc70334ef68bea1 /runtime/lua/vim/lsp/log.lua
parent1aec5ba85e97889c792253424c5de9c12ddd6cf4 (diff)
downloadrneovim-82c09f7c0b5d19f6f63f2dd126412fc75523f647.tar.gz
rneovim-82c09f7c0b5d19f6f63f2dd126412fc75523f647.tar.bz2
rneovim-82c09f7c0b5d19f6f63f2dd126412fc75523f647.zip
lsp: add explicit entry on lsp log start
fix: address typo and review comments
Diffstat (limited to 'runtime/lua/vim/lsp/log.lua')
-rw-r--r--runtime/lua/vim/lsp/log.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/log.lua b/runtime/lua/vim/lsp/log.lua
index 4e8d2d4202..331e980e67 100644
--- a/runtime/lua/vim/lsp/log.lua
+++ b/runtime/lua/vim/lsp/log.lua
@@ -32,6 +32,8 @@ do
vim.fn.mkdir(vim.fn.stdpath('cache'), "p")
local logfile = assert(io.open(logfilename, "a+"))
+ -- Start message for logging
+ logfile:write(string.format("[ START ] %s ] LSP logging initiated\n", os.date(log_date_format)))
for level, levelnr in pairs(log.levels) do
-- Also export the log level on the root object.
log[level] = levelnr
@@ -68,8 +70,6 @@ do
logfile:flush()
end
end
- -- Add some space to make it easier to distinguish different neovim runs.
- logfile:write("\n")
end
-- This is put here on purpose after the loop above so that it doesn't