Skip to content

Commit

Permalink
chore: silence lint by checking for nil return of vim.filetype.match
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Sep 28, 2024
1 parent c200706 commit 479ba40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-dap-virtual-text/virtual_text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function M.set_virtual_text(stackframe, options)
local lang
local ft = vim.bo[buf].ft
if ft == '' then
ft = vim.filetype.match { buf = buf }
ft = vim.filetype.match { buf = buf } or ''
if ft == '' then
return
end
Expand Down

0 comments on commit 479ba40

Please sign in to comment.