Skip to content

Commit 1f08138

Browse files
committed
fix var get
1 parent 95efc1a commit 1f08138

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rplugin/python3/acid/commands/alternate_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def prepare_payload(self):
4040
path = current_file(self.nvim)
4141
root_path = current_path(self.nvim)
4242
rel_path = os.path.relpath(path, start=root_path).split('/')
43-
open_with = nvim.vars.get(
43+
open_with = self.nvim.vars.get(
4444
'acid_open_alternate_file_with',
4545
nvim.vars.get('acid_open_new_file_with', 'edit')
4646
)

rplugin/python3/acid/commands/new.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def prompt_default(nvim):
2323
def prepare_payload(self, ns):
2424
fname = "{}.clj".format(ns_to_path(ns))
2525
base = 'test' if ns.endswith('-test') else 'src'
26-
open_with = nvim.vars.get('acid_open_new_file_with', 'edit')
26+
open_with = self.nvim.vars.get('acid_open_new_file_with', 'edit')
2727
path = os.path.join(current_path(self.nvim), base, fname)
2828

2929
with open(path, 'w') as fpath:

0 commit comments

Comments
 (0)