Skip to content

Commit

Permalink
fix: error in set_filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
smjonas committed May 27, 2024
1 parent baac332 commit 058676d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cmp_nvim_ultisnips/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local cur_ft_at_cursor
function M.set_filetype()
local new_ft = get_ft_at_cursor()
if new_ft ~= nil and new_ft ~= cur_ft_at_cursor and new_ft ~= vim.bo.filetype then
vim.fn.pyeval(("ultisnips_utils.set_filetype(%s)"):format(new_ft))
vim.fn.pyeval(('ultisnips_utils.set_filetype("%s")'):format(new_ft))
cur_ft_at_cursor = new_ft
end
end
Expand Down

0 comments on commit 058676d

Please sign in to comment.