simple way to jump out of brackets, parentheses, and quotes in Neovim.
- combined jump out of brackets with jump to the end of theTree-sitter node (like this in Helix)
- supports nested pairs (thanks to neotab.nvim)
return {
"parsifa1/smartab.nvim",
event = "InsertEnter",
opts = {
skips = { "string_content" },
mapping = "<tab>",
backward_mapping = "<S-tab>",
behavior = "nested",
pairs = {
{ open = "(", close = ")" },
{ open = "[", close = "]" },
{ open = "{", close = "}" },
{ open = "<", close = ">" },
{ open = "'", close = "'" },
{ open = '"', close = '"' },
{ open = "`", close = "`" },
},
exclude_filetype = {},
}
}
dependencies:
- luasnip (optional)