Skip to content

Commit

Permalink
little fix for lightbulb
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Jan 9, 2024
1 parent 4077c73 commit efe81c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/LspUI/lightbulb/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ end
--- @param buffer_id integer buffer's id
--- @param callback function callback is a function, has a param boolean
M.request = function(buffer_id, callback)
if not api.nvim_buf_is_valid(buffer_id) then
return
end
local params = lsp.util.make_range_params()
local context = {
triggerKind = vim.lsp.protocol.CodeActionTriggerKind.Invoked,
Expand Down

0 comments on commit efe81c1

Please sign in to comment.