Add buftype=nofile for entries_win and docs_win

- reddit user mention this...
This commit is contained in:
hrsh7th
2023-05-04 19:35:24 +09:00
parent 8d2f190506
commit 0f47dcaf7e
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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