ALL possible code action in a file #1231
Replies: 2 comments 4 replies
-
require('lspsaga.codeaction'):code_action({ range = { start = { 0, 0 } , ['end'] = { api.nvim_buf_get_line(0) - 1, 0} }) |
Beta Was this translation helpful? Give feedback.
1 reply
-
oh sorry there also need you pass all diagnostics of this buffer. need convert the :lua require('lspsaga.codeaction'):code_action({ range = { start = { 0, 0 } , ['end'] = { vim.
api.nvim_buf_line_count(0), 0}} , diagnostics = all buffer diagnostics}) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
is there any way to list down all possible code action present in a file?
Beta Was this translation helpful? Give feedback.
All reactions