Update access to variables

This commit is contained in:
Daniel Siepmann 2020-04-24 12:01:46 +02:00
parent 61bf47d24b
commit 65a95c9dd1
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -24,7 +24,7 @@ class NeotagsPlugin(object):
for option, default in self.options.items():
try:
variable = 'neotags_%s' % option
self.options[option] = self.nvim.vars[variable]
self.options[option] = self.nvim.eval('g:%s' % variable)
except pynvim.api.nvim.NvimError:
self.options[option] = default