瀏覽代碼

nixpkgs/neovim: keep textobjects at the current location

Thomas Dy 1 月之前
父節點
當前提交
b98ea1ee16
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .config/nixpkgs/neovim/plugins.lua

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

@@ -279,6 +279,8 @@ require('mini.surround').setup({
 local spec_treesitter = require('mini.ai').gen_spec.treesitter
 
 require('mini.ai').setup({
+  -- only consider the current location
+  search_method = 'cover',
   custom_textobjects = {
     [','] = spec_treesitter({
       a = '@parameter.outer',