diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2023-07-10 14:05:55 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2023-07-19 11:52:52 -0400 |
| commit | 0613f29757b688b55b74027063d35dcebc23b10a (patch) | |
| tree | 65223cfb311adcdadd9d673095c153cba99236cf /.config/nvim/lua/plugins/textobjects.lua | |
| parent | 9b4332d25594ff14a4b3038acc4a482325207759 (diff) | |
nvim: stuff
Diffstat (limited to '.config/nvim/lua/plugins/textobjects.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/textobjects.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/textobjects.lua b/.config/nvim/lua/plugins/textobjects.lua new file mode 100644 index 0000000..909ece4 --- /dev/null +++ b/.config/nvim/lua/plugins/textobjects.lua @@ -0,0 +1,17 @@ +return { + { + "echasnovski/mini.ai", + event = "VeryLazy", + config = function() + local ai = require("mini.ai") + ai.setup({ + n_lines = 200, + custom_textobjects = { + F = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }), + c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }), + }, + }) + end + }, +} + |
