summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2020-02-01 12:11:45 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2020-02-01 12:11:45 +0900
commit6e01000280edc9c9c56ef7b1d59977fc93e3bf4c (patch)
tree70eb6724deabdbaa53310b1cda8a2775790a2ba9 /rplugin/python3/deoplete
parent27ef3c74cf24921738ac543a6658bcaca462fe1a (diff)
downloaddeoplete.nvim-6e01000280edc9c9c56ef7b1d59977fc93e3bf4c.zip
Add is_skip_langmap for eskk
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r--rplugin/python3/deoplete/base/source.py1
-rw-r--r--rplugin/python3/deoplete/child.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/rplugin/python3/deoplete/base/source.py b/rplugin/python3/deoplete/base/source.py
index b146eca..73be2ca 100644
--- a/rplugin/python3/deoplete/base/source.py
+++ b/rplugin/python3/deoplete/base/source.py
@@ -39,6 +39,7 @@ class Base(LoggingMixin):
self.is_volatile = False
self.is_async = False
self.is_silent = False
+ self.is_skip_langmap = True
self.rank = 100
self.disabled_syntaxes: typing.List[str] = []
self.events: typing.List[str] = []
diff --git a/rplugin/python3/deoplete/child.py b/rplugin/python3/deoplete/child.py
index 323ed25..484a555 100644
--- a/rplugin/python3/deoplete/child.py
+++ b/rplugin/python3/deoplete/child.py
@@ -506,6 +506,11 @@ class Child(logger.LoggingMixin):
p = re.compile('(' + '|'.join(source.disabled_syntaxes) + ')$')
if next(filter(p.search, context['syntax_names']), None):
return True
+
+ iminsert = self._vim.call('getbufvar', '%', '&iminsert')
+ if iminsert == 1 and source.is_skip_langmap:
+ return True
+
for ft in context['filetypes']:
input_pattern = source.get_input_pattern(ft)
if (input_pattern != '' and