We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6ca567 + 2080a81 commit e761923Copy full SHA for e761923
rplugin/python3/acid/commands/new.py
@@ -25,6 +25,9 @@ def prepare_payload(self, ns):
25
base = 'test' if ns.endswith('-test') else 'src'
26
open_with = self.nvim.vars.get('acid_open_new_file_with', 'edit')
27
path = os.path.join(current_path(self.nvim), base, fname)
28
+ directory = os.path.dirname(path)
29
+ if not os.path.exists(directory):
30
+ os.makedirs(directory)
31
32
with open(path, 'w') as fpath:
33
fpath.write('(ns {})'.format(ns))
0 commit comments