|
@@ -92,19 +92,23 @@ require('mini.completion').setup({
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+local spec_treesitter = require('mini.ai').gen_spec.treesitter
|
|
|
+
|
|
|
+require('mini.ai').setup({
|
|
|
+ custom_textobjects = {
|
|
|
+ [','] = spec_treesitter({
|
|
|
+ a = '@parameter.outer',
|
|
|
+ i = '@parameter.inner',
|
|
|
+ }),
|
|
|
+ },
|
|
|
+});
|
|
|
+
|
|
|
-- Use Treesitter for syntax highlighting
|
|
|
require('nvim-treesitter.configs').setup({
|
|
|
highlight = {
|
|
|
enable = true,
|
|
|
},
|
|
|
textobjects = {
|
|
|
- select = {
|
|
|
- enable = true,
|
|
|
- keymaps = {
|
|
|
- ['i,'] = '@parameter.inner',
|
|
|
- ['a,'] = '@parameter.outer',
|
|
|
- },
|
|
|
- },
|
|
|
swap = {
|
|
|
enable = true,
|
|
|
swap_next = {
|