diff options
| author | Kyren223 <contact@kyren.codes> | 2026-06-24 02:49:27 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-06-24 02:49:27 +0300 |
| commit | af45f1918a9715479d6b6bd857df319fb474254e (patch) | |
| tree | a7d3f36331461ef8df07c61211a2009fbbd22d30 | |
| parent | 1fb4b11cc3fdd725d076bf78e935b2b8209bf253 (diff) | |
Make the unwrap snippet be java only (as intended, rather than all which
was just for debugging)
| -rw-r--r-- | .config/nvim/lua/plugins/luasnip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/luasnip.lua b/.config/nvim/lua/plugins/luasnip.lua index a850d39..0e55c52 100644 --- a/.config/nvim/lua/plugins/luasnip.lua +++ b/.config/nvim/lua/plugins/luasnip.lua @@ -52,7 +52,7 @@ return { local k = require('luasnip.nodes.key_indexer').new_key local postfix_builtin = require('luasnip.extras.treesitter_postfix').builtin - ls.add_snippets('all', { + ls.add_snippets('java', { ts_postfix({ matchTSNode = postfix_builtin.tsnode_matcher.find_topmost_types({ 'identifier', |
