-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP Code Action Source #6
Comments
At the moment, no. The display of lines is specified by the There are some different directions I could go from here. It would be fairly straightforward to add a I could go further and build out the API to let you specify highlighting and column alignment as well, but then I have to make sure that it works (or at least behaves) across all the potential backends. It adds quite a bit of code complexity and diverges from the core API, so I'm hesitant to do it without good motivation. I think the better way to go about it would be to make the case in Neovim core to officially add columns/highlighting to the Thoughts? |
Hi thanks for your detailed response. I reckon before Neovim updates their core API, the best approach right now would be to override the format item. |
Added a config option and also some example code in the help docs that should do what you want |
Looks good thank you! Love how you can also filter by language server now :)) |
Hi @stevearc, just wondering, but is it possible to link the [LANGUAGE_SERVER] to the Comment highlight group? This would be amazing if possible :D |
Unfortunately, this isn't possible without a lot of additional hacks. Dressing |
Yeah fair enough thanks for the clarification. Sometimes it's quite annoying that Telescope's code action doesn't do everything vim.lsp.buf.code_action would do (esp for nvim-jdtls), so I have to switch between both conditionally based on filetype. But yeah, perhaps I'll have a look into creating my own Telescope picker. Thanks again! |
Hi, just wondering if this can now be achieved with e607dd9 |
That commit was more intended for a different use case altogether, but it does technically unlock more UI customization abilities for end users as well (via the In this case though, I think I'm going to go back on my previous decision. I was stuck on trying to figure out how to keep the UI consistent across all of the backends, but (especially with that recent change) I don't think that's a hard requirement anymore. I'm more on board with small amounts of customization in certain circumstances for common or core neovim features. So I've gone ahead and added a custom formatter when |
Thanks I love the change! Is it possible to search through the language server names (comment) as well? Glad to see this implemented now - which means I don't need https://github.com/nvim-telescope/telescope-ui-select.nvim anymore :D |
Done! |
Thank you so much for the quick changes. Love your work as always! |
Hello,
Just wondering if there is a way to include code action source names with
vim.lsp.buf.code_action()
, similar to Telescope's builtin lsp_code_actions.vim-ui-select (with dressing.nvim)
Telescope
The text was updated successfully, but these errors were encountered: