diff options
| author | William Boman <william@redwill.se> | 2022-05-29 23:03:59 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-05-29 23:03:59 +0200 |
| commit | 6815080b3dc7c93ce12b3359e44a4edd3725ec91 (patch) | |
| tree | 989d618a12bb56cdbc9321e99bafaa741a32c1eb /lua/nvim-lsp-installer/log.lua | |
| parent | fix(log): check is has nvim-0.8.0 before accessing stdpath("state") (diff) | |
| download | mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar.gz mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar.bz2 mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar.lz mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar.xz mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.tar.zst mason-6815080b3dc7c93ce12b3359e44a4edd3725ec91.zip | |
fix(log): fix evaluation of has() result
Diffstat (limited to 'lua/nvim-lsp-installer/log.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/log.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/log.lua b/lua/nvim-lsp-installer/log.lua index e616c630..a6b34c5e 100644 --- a/lua/nvim-lsp-installer/log.lua +++ b/lua/nvim-lsp-installer/log.lua @@ -32,7 +32,7 @@ local config = { local log = { outfile = path.concat { - ((vim.fn.has "nvim-0.8.0" and vim.fn.stdpath "state") or vim.fn.stdpath "cache"), + ((vim.fn.has "nvim-0.8.0" == 1 and vim.fn.stdpath "state") or vim.fn.stdpath "cache"), ("%s.log"):format(config.name), }, } |
