Our great sponsors
-
mini.nvim
Library of 35+ independent Lua modules improving overall Neovim (version 0.7 and higher) experience with minimal effort
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I am happy to announce new features of 'mini.surround' - module of 'mini.nvim' for surrounding actions (add, delete, replace, find, highlight surrounding characters). All actions are dot-repeatable out of the box and operate on highly customizable set of surrounding identifiers. By default it defines mappings with common s prefix (sa for add, sd for delete, sr for replace, sf for find, sh for highlight), but setup similar to 'tpope/vim-surround' is, of course, also possible.
Tree-sitter support. Thanks to new specification format you can now use tree-sitter based surroundings. More information is in the help file. Note, that for full experience with function call surrounding, better update 'nvim-treesitter/nvim-treesitter-textobjects' to at least include changes from this PR (merged around 3 days ago).
Related posts
- Function and class text objects with Treesitter?
- Moving to text object
- 'mini.ai' now supports textobjects based on tree-sitter
- mini.ai - extend and create a/i textobjects (like 'targets.vim', but in Lua and a bit different)
- Question: Is it a requirement that plugins written in Lua require you to call the setup function?