From 26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa Mon Sep 17 00:00:00 2001 From: Sebastian Lyng Johansen Date: Thu, 14 Aug 2025 20:31:21 +0200 Subject: refactor(lsp): vim.lsp.get_log_path() -> vim.lsp.log.get_filename() #3997 --- lua/lspconfig/health.lua | 2 +- plugin/lspconfig.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index 83ee3b7b..247b6dff 100644 --- a/lua/lspconfig/health.lua +++ b/lua/lspconfig/health.lua @@ -253,7 +253,7 @@ local function check_lspconfig(bufnr) end health.start(('LSP configs active in this buffer (bufnr: %s)'):format(bufnr or '(invalid buffer)')) - health.info('Language client log: ' .. fmtpath(vim.lsp.get_log_path())) + health.info('Language client log: ' .. fmtpath(vim.lsp.log.get_filename())) health.info(('Detected filetype: `%s`'):format(buffer_filetype)) health.info(('%d client(s) attached to this buffer'):format(#vim.tbl_keys(buf_clients))) for _, client in ipairs(buf_clients) do diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index 10250919..dfd9dc59 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -68,7 +68,7 @@ end api.nvim_create_user_command('LspInfo', ':checkhealth vim.lsp', { desc = 'Alias to `:checkhealth vim.lsp`' }) api.nvim_create_user_command('LspLog', function() - vim.cmd(string.format('tabnew %s', lsp.get_log_path())) + vim.cmd(string.format('tabnew %s', lsp.log.get_filename())) end, { desc = 'Opens the Nvim LSP client log.', }) -- cgit v1.2.3-70-g09d2