Updated filter files func in blink.cmp
This commit is contained in:
parent
ddca0b4504
commit
13ba71f90a
9
init.lua
9
init.lua
|
@ -906,14 +906,15 @@ require('lazy').setup({
|
||||||
providers = {
|
providers = {
|
||||||
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
||||||
buffer = {
|
buffer = {
|
||||||
score_offset = -1,
|
-- Make buffer compeletions appear at the end.
|
||||||
filter = function(buffer)
|
score_offset = -100,
|
||||||
-- Filetypes for which buffer completions are enabled; add filetypes to extend
|
enabled = function()
|
||||||
|
-- Filetypes for which buffer completions are enabled; add filetypes to extend:
|
||||||
local enabled_filetypes = {
|
local enabled_filetypes = {
|
||||||
'markdown',
|
'markdown',
|
||||||
'text',
|
'text',
|
||||||
}
|
}
|
||||||
local filetype = vim.bo[buffer].filetype
|
local filetype = vim.bo.filetype
|
||||||
return vim.tbl_contains(enabled_filetypes, filetype)
|
return vim.tbl_contains(enabled_filetypes, filetype)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue