Is there a textobject for `object.` in `object.property.another`?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/neovim

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Zigi - Delete the most useless function ever: context switching.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • mini.nvim

    Library of 20+ independent Lua modules improving overall Neovim (version 0.6 and higher) experience with minimal effort

    I can suggestion try mini.ai with the following setup:

  • targets.vim

    Vim plugin that provides additional text objects

    Thanks for the through explanation. I has seen that and considered using it in the past. Can I ask how it compares to https://github.com/wellle/targets.vim? Would you consider mini.ai a replacement or complementary?

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • vim-textobj-chainmember

    Vim text object for chained method calls and member access

    I just answered my own question, this is exactly what I was looking for: https://github.com/D4KU/vim-textobj-chainmember

  • By the way, if you need this kind of textobject in buffers with tree-sitter, another option would be to use tree-sitter captures and queries. Either through nvim-treesitter-textobjects or writing your own.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts