aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Lyng Johansen <sebastian@lyngjohansen.com>2025-08-14 20:31:21 +0200
committerGitHub <noreply@github.com>2025-08-14 11:31:21 -0700
commit26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa (patch)
tree976999021d3acd67f9ea9e471625f1606bc3170a
parentci: bump actions/checkout from 4 to 5 (#3994) (diff)
downloadnvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar.gz
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar.bz2
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar.lz
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar.xz
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.tar.zst
nvim-lspconfig-26ccc7f9f782b9f1723ae10d5c3e2ac9c2c6c9aa.zip
refactor(lsp): vim.lsp.get_log_path() -> vim.lsp.log.get_filename() #3997
-rw-r--r--lua/lspconfig/health.lua2
-rw-r--r--plugin/lspconfig.lua2
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.',
})