fix nil error (#280)

* fix nil error

* Update null_ls.lua

---------

Co-authored-by: blob42 <spike@w530>
Co-authored-by: rayx <rayx.cn@gmail.com>
pull/282/head
blob42 1 year ago committed by GitHub
parent 2c40773901
commit bd9caf8d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,6 +39,7 @@ local function handler()
package = entry.Package
output = ''
elseif entry.Action == 'output' then
package = package or entry.Package
if vim.fn.empty(entry.Output) == 0 then
local ma = vim.fn.matchlist(entry.Output, [[\v\s*(\w+.+\.go):(\d+):]])
if ma[2] then

Loading…
Cancel
Save