Add buftype=nofile for entries_win and docs_win
- reddit user mention this...
This commit is contained in:
@@ -37,6 +37,7 @@ custom_entries_view.new = function()
|
|||||||
-- from variable width of the tab character.
|
-- from variable width of the tab character.
|
||||||
self.entries_win:buffer_option('tabstop', 1)
|
self.entries_win:buffer_option('tabstop', 1)
|
||||||
self.entries_win:buffer_option('filetype', 'cmp_menu')
|
self.entries_win:buffer_option('filetype', 'cmp_menu')
|
||||||
|
self.entries_win:buffer_option('buftype', 'nofile')
|
||||||
self.event = event.new()
|
self.event = event.new()
|
||||||
self.offset = -1
|
self.offset = -1
|
||||||
self.active = false
|
self.active = false
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ docs_view.new = function()
|
|||||||
self.window:option('showbreak', 'NONE')
|
self.window:option('showbreak', 'NONE')
|
||||||
self.window:option('wrap', true)
|
self.window:option('wrap', true)
|
||||||
self.window:buffer_option('filetype', 'cmp_docs')
|
self.window:buffer_option('filetype', 'cmp_docs')
|
||||||
|
self.window:buffer_option('buftype', 'nofile')
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user