Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

Yasnippet returns Wrong type argument: listp

After inserting the snippet I'm able to type the function name. But after tabbing to args, I get the error Wrong type argument: listp on typing Is it python-args-to-docstring failing at it's job? I've ...
jjk's user avatar
  • 758
0 votes
1 answer
164 views

Yasnippet-snippets indention not correct for Python functions

Yasnippet-snippets contains a snippet for Python mode to create a function with a docstring. The indention is not correct when I use it, I think it maybe has to do with some Spacemacs settings, but I ...
Cor's user avatar
  • 1
0 votes
0 answers
50 views

How to apply `yasnippets` only for keywords at the beginning of the line? [duplicate]

I am using Python but some pre-defineted snippets. I was wondering is it possible to apply them if the keyword is the first word. if and [TAB] converted into if cond:. I want this behaviour if the ...
alper's user avatar
  • 1,460
3 votes
1 answer
430 views

Call Python from YaSnippet and insert result

I'm trying to build a comparable functionality as described here: https://castel.dev/post/lecture-notes-1/#sympy-and-mathematica Basically, he's using something comparable to yasnippet to send a ...
beyeran's user avatar
  • 231
3 votes
2 answers
2k views

Python docstrings only allow two indent levels

I am trying to write a docstring that follows Google's style guide such that it looks something like: def testFunction(a, b): """ Args: a (str): b (str): Returns: ...
chasely's user avatar
  • 231