How can I make the gitsigns codeactions go below all other codeactions #108
-
I think in general null-ls things should come below other lsps (like if both servers can provide formatting). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By design, Neovim treats null-ls like an actual LSP server, and Neovim doesn't really have the concept of language server priority / ordering, so this isn't something we can really handle. In this case, I think you'd have to write a custom function to get code actions, sort them by server, then either pass them to the built-in handler or use a custom one. I recommend looking at Telescope's code action built-in if this is something you're interested in. |
Beta Was this translation helpful? Give feedback.
By design, Neovim treats null-ls like an actual LSP server, and Neovim doesn't really have the concept of language server priority / ordering, so this isn't something we can really handle. In this case, I think you'd have to write a custom function to get code actions, sort them by server, then either pass them to the built-in handler or use a custom one. I recommend looking at Telescope's code action built-in if this is something you're interested in.