Browse Source

nixpkgs/neovim: add a/i for function calls

Thomas Dy 2 tháng trước cách đây
mục cha
commit
a3fb902167

+ 4 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -282,6 +282,10 @@ require('mini.ai').setup({
   -- only consider the current location
   -- only consider the current location
   search_method = 'cover',
   search_method = 'cover',
   custom_textobjects = {
   custom_textobjects = {
+    ['.'] = spec_treesitter({
+      a = '@call.outer',
+      i = '@call.inner',
+    }),
     [','] = spec_treesitter({
     [','] = spec_treesitter({
       a = '@parameter.outer',
       a = '@parameter.outer',
       i = '@parameter.inner',
       i = '@parameter.inner',