Restore filetype setting

This commit is contained in:
hrsh7th
2022-08-20 19:21:22 +09:00
parent 1307917fff
commit 9417f48a99
3 changed files with 16 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ custom_entries_view.new = function()
-- always rendered one column wide, which removes the unpredictability coming
-- from variable width of the tab character.
self.entries_win:buffer_option('tabstop', 1)
self.entries_win:buffer_option('filetype', 'cmp_menu')
self.event = event.new()
self.offset = -1
self.active = false

View File

@@ -16,6 +16,7 @@ docs_view.new = function()
self.window:option('linebreak', true)
self.window:option('scrolloff', 0)
self.window:option('wrap', true)
self.window:buffer_option('filetype', 'cmp_docs')
return self
end