5
5
--- @field cursorline ? boolean
6
6
--- @field border ? blink.cmp.WindowBorder
7
7
--- @field wrap ? boolean
8
- --- @field filetype ? string
9
8
--- @field winblend ? number
10
9
--- @field winhighlight ? string
11
10
--- @field scrolloff ? number
@@ -51,7 +50,6 @@ function win.new(config)
51
50
cursorline = config .cursorline or false ,
52
51
border = config .border or ' none' ,
53
52
wrap = config .wrap or false ,
54
- filetype = config .filetype or ' cmp_menu' ,
55
53
winblend = config .winblend or 0 ,
56
54
winhighlight = config .winhighlight or ' Normal:NormalFloat,FloatBorder:NormalFloat' ,
57
55
scrolloff = config .scrolloff or 0 ,
@@ -70,8 +68,6 @@ function win:get_buf()
70
68
if self .buf == nil or not vim .api .nvim_buf_is_valid (self .buf ) then
71
69
self .buf = vim .api .nvim_create_buf (false , true )
72
70
vim .api .nvim_set_option_value (' tabstop' , 1 , { buf = self .buf }) -- prevents tab widths from being unpredictable
73
- vim .api .nvim_set_option_value (' filetype' , self .config .filetype , { buf = self .buf })
74
- vim .treesitter .stop (self .buf )
75
71
end
76
72
return self .buf
77
73
end
0 commit comments