Skip to content
Discussion options

You must be logged in to vote

Yes, this is possible with the following setup:

  • Create a '~/.config/nvim/after/ftplugin/python.lua' file with the following content:

    vim.b.miniai_config = {
      custom_textobjects = {
        -- Match triple " or ' pair, `i` textobject is inside of them
        s = { { '""".-"""', "'''.-'''" }, '^...().*()...$' },
      },
    }
  • Use it like is and as. This will only work for Python files (i.e. in buffers with python filetype).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shyun3
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.ai
2 participants