Skip to content

Commit

Permalink
make lua lsp happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-reineke committed Sep 15, 2023
1 parent cf73ed8 commit 2a587a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/ibl/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ M.get_filetypes = function(bufnr)
)
end

local has_end_reg = vim.regex "^\\s*\\(}\\|]\\|)\\|end\\)" --[[@as vim.regex]]
local has_end_reg = vim.regex "^\\s*\\(}\\|]\\|)\\|end\\)"
---@param line string
M.has_end = function(line)
if has_end_reg:match_str(line) ~= nil then
if has_end_reg and has_end_reg:match_str(line) ~= nil then
return true
end
return false
Expand Down

0 comments on commit 2a587a8

Please sign in to comment.