Skip to content

feat: remove :Lsp* commands for nvim 0.12 - #4234

Merged
justinmk merged 1 commit into
neovim:masterfrom
superatomic:remove-commands
Dec 16, 2025
Merged

feat: remove :Lsp* commands for nvim 0.12#4234
justinmk merged 1 commit into
neovim:masterfrom
superatomic:remove-commands

Conversation

@superatomic

Copy link
Copy Markdown
Member

To be merged when neovim/neovim#36925 is merged.

@superatomic superatomic changed the title Remove :Lsp* commands for nvim 0.12 feat: remove :Lsp* commands for nvim 0.12 Dec 12, 2025
@superatomic
superatomic marked this pull request as ready for review December 13, 2025 15:03
Comment thread plugin/lspconfig.lua Outdated
@justinmk
justinmk merged commit 45c93f9 into neovim:master Dec 16, 2025
5 checks passed
@superatomic
superatomic deleted the remove-commands branch December 16, 2025 18:05
@seblyng

seblyng commented Dec 16, 2025

Copy link
Copy Markdown

What about :LspLog? I know :LspInfo is just a wrapper around :che vim.lsp so that is not so much more to type

@superatomic

superatomic commented Dec 16, 2025

Copy link
Copy Markdown
Member Author

There's a possible argument for :lsp by itself being a synonym for :checkhealth vim.lsp. I decided against it in the PR because it felt wrong to me. :che vim.lsp is pretty short, especially with completion.

You can also easily put vim.api.nvim_create_user_command('LspLog', 'che vim.lsp', {}) in your own config. I don't think it really needs to be upstreamed. :LspLog only exists because it came before :che vim.lsp.

@justinmk

Copy link
Copy Markdown
Member

LspLog != LspInfo

@superatomic

superatomic commented Dec 16, 2025

Copy link
Copy Markdown
Member Author

Oh my bad. I misunderstood.

@jpsalo jpsalo mentioned this pull request Jan 5, 2026
8 tasks
@bhuynhdev

bhuynhdev commented Mar 24, 2026

Copy link
Copy Markdown

I believe logs are stored in ~/.local/state/nvim/lsp.log, so LspLog - though inconvenient that it was removed - can be replaced with :e ~/local/state/nvim/lsp.log.

Native :lsp log command would be very convenient and useful

@superatomic

superatomic commented Mar 24, 2026

Copy link
Copy Markdown
Member Author

I believe the plan is to introduce a :log command that can be implemented by vim modules and plugins, like how :checkhealth works. So the command would be :log vim.lsp.

(Edit: My memory is inaccurate. The plan is much simpler; just have an :editlog command that opens files in stdpath('log'))

In the meantime you can implement a simple custom user command that reimplements :LspLog, as the implementation is rather simple:

vim.api.nvim_create_user_command('LspLog', function() 
  vim.cmd.tabnew { vim.lsp.log.get_filename() }
end, { 
  desc = 'Opens the Nvim LSP client log.', 
})

@superatomic

Copy link
Copy Markdown
Member Author

:log lsp is now available in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants