aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/log.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-05-02 23:40:34 -0700
committerGitHub <noreply@github.com>2021-05-02 23:40:34 -0700
commitad811444424f573c4dc10b203f8f42adb3c5fdf4 (patch)
treefe883f502706a83a47f1ad27f292ed59f9e524db /runtime/lua/vim/lsp/log.lua
parenta0da4c3a491f715c28f70bc2295be5fe809d72c2 (diff)
parent6974d0c6c18f683256c3f96b902eae79660b5590 (diff)
downloadrneovim-ad811444424f573c4dc10b203f8f42adb3c5fdf4.tar.gz
rneovim-ad811444424f573c4dc10b203f8f42adb3c5fdf4.tar.bz2
rneovim-ad811444424f573c4dc10b203f8f42adb3c5fdf4.zip
Merge pull request #14334 from DarwinSenior/vim.log
lsp: deep copy vim.lsp.log when reloading
Diffstat (limited to 'runtime/lua/vim/lsp/log.lua')
-rw-r--r--runtime/lua/vim/lsp/log.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/log.lua b/runtime/lua/vim/lsp/log.lua
index 331e980e67..471a311c16 100644
--- a/runtime/lua/vim/lsp/log.lua
+++ b/runtime/lua/vim/lsp/log.lua
@@ -10,7 +10,7 @@ local log = {}
-- Can be used to lookup the number from the name or the name from the number.
-- Levels by name: 'trace', 'debug', 'info', 'warn', 'error'
-- Level numbers begin with 'trace' at 0
-log.levels = vim.log.levels
+log.levels = vim.deepcopy(vim.log.levels)
-- Default log level is warn.
local current_log_level = log.levels.WARN