Skip to content

Commit

Permalink
Update lua/hawtkeys/ts.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 authored Jan 11, 2024
1 parent 1c7a65a commit 7bb4ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/hawtkeys/ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ local function find_maps_in_file(filePath)
local strObj =
vim.treesitter.get_node_text(node.node, fileContent)
local ok, tableObj = pcall(function()
--Remove wrapping parens issue #81
--Remove wrapping parens and wrap in table and unpack - issue #81
strObj = strObj:gsub("^%s*%(%s*", ""):gsub("%s*%)%s*$", "")
return loadstring("return {" .. strObj .. "}")()
end)
Expand Down

0 comments on commit 7bb4ff9

Please sign in to comment.