diff options
Diffstat (limited to 'lua/nvim-lsp-installer/log.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/log.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/log.lua b/lua/nvim-lsp-installer/log.lua index 33be9ed7..e616c630 100644 --- a/lua/nvim-lsp-installer/log.lua +++ b/lua/nvim-lsp-installer/log.lua @@ -31,7 +31,10 @@ local config = { } local log = { - outfile = path.concat { (vim.fn.stdpath "state" or vim.fn.stdpath "cache"), ("%s.log"):format(config.name) }, + outfile = path.concat { + ((vim.fn.has "nvim-0.8.0" and vim.fn.stdpath "state") or vim.fn.stdpath "cache"), + ("%s.log"):format(config.name), + }, } local unpack = unpack or table.unpack |
