[mini.ai] Python multiline string #2096
-
Contributing guidelines
Module(s)mini.ai QuestionIs there a way to configure a Python multiline string with Another non-solution is using the treesitter group x = """hello
world"""This is not a docstring, so a treesitter text object for that group does not help. I also tried creating composed patterns but could not get them to be balanced. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yes, this is possible with the following setup:
|
Beta Was this translation helpful? Give feedback.
Yes, this is possible with the following setup:
Create a '~/.config/nvim/after/ftplugin/python.lua' file with the following content:
Use it like
isandas. This will only work for Python files (i.e. in buffers withpythonfiletype).