-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks Luasnip for triggers ending in '>' #102
Comments
you should choose 1 or write your own mapping function to combine both plugin |
Same issue here. I make a dirty hack to avoid '>' key mapping. |
To anyone facing this issue, add this after setting up your Luasnip: local ls = require('luasnip')
local autotag = require('nvim-ts-autotag.internal')
vim.keymap.set('i', '>', function()
local row, col = unpack(vim.api.nvim_win_get_cursor(0))
vim.api.nvim_buf_set_text(0, row - 1, col, row - 1, col, { '>' })
autotag.close_tag()
vim.api.nvim_win_set_cursor(0, { row, col + 1 })
ls.expand_auto()
end, { remap = false }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this issue. This plugin causes Luasnip snippets to not autoexpand when their trigger ends in the
>
character.The text was updated successfully, but these errors were encountered: