diff --git a/lua/cmp/view/custom_entries_view.lua b/lua/cmp/view/custom_entries_view.lua index bb3266f..a5eca58 100644 --- a/lua/cmp/view/custom_entries_view.lua +++ b/lua/cmp/view/custom_entries_view.lua @@ -37,6 +37,7 @@ custom_entries_view.new = function() -- from variable width of the tab character. self.entries_win:buffer_option('tabstop', 1) self.entries_win:buffer_option('filetype', 'cmp_menu') + self.entries_win:buffer_option('buftype', 'nofile') self.event = event.new() self.offset = -1 self.active = false diff --git a/lua/cmp/view/docs_view.lua b/lua/cmp/view/docs_view.lua index 7db651b..e559a53 100644 --- a/lua/cmp/view/docs_view.lua +++ b/lua/cmp/view/docs_view.lua @@ -18,6 +18,7 @@ docs_view.new = function() self.window:option('showbreak', 'NONE') self.window:option('wrap', true) self.window:buffer_option('filetype', 'cmp_docs') + self.window:buffer_option('buftype', 'nofile') return self end