Skip to content

Commit 2768e90

Browse files
committed
rename indent
1 parent 775b0ef commit 2768e90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# vim-python-docstring
22
This is a plugin to Vim and NeoVim for creating of docstrings.
33

4-
**New**: Support for type hints and async functions.
4+
**Breaking change:** Renamed the `g:python_indent` setting to `vpd_indent` because it collided with existing vim setting.
55

66
## What it does
77
Docstrings for methods will contain a **list of parameters and their type hints**, **list of raised exceptions** and whether the method **yields** or **raises**.
@@ -45,13 +45,13 @@ The plugin uses these commands:
4545
## Options:
4646
There are things you can set.
4747

48-
### The `g:python_indent` option
48+
### The `g:vpd_indent` option
4949
String which you use to indent your code.
5050

5151
Default: `' '` (4 spaces).
5252

5353
~~~{viml}
54-
let g:python_indent = ' '
54+
let g:vpd_indent = ' '
5555
~~~
5656

5757
### The `g:python_style` option

python/vimenv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def python_style(self):
7575

7676
@property
7777
def python_indent(self):
78-
if not int(vim.eval('exists("g:python_indent")')):
78+
if not int(vim.eval('exists("g:vpd_indent")')):
7979
return " "
8080
else:
81-
return self._get_var("g:python_indent")
81+
return self._get_var("g:vpd_indent")
8282

8383
@property
8484
def current_line_nr(self):

0 commit comments

Comments
 (0)