Updated filter files func in blink.cmp

This commit is contained in:
MN-nagy 2025-07-14 00:11:44 +03:00
parent ddca0b4504
commit 13ba71f90a
1 changed files with 5 additions and 4 deletions

View File

@ -906,14 +906,15 @@ require('lazy').setup({
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
buffer = {
score_offset = -1,
filter = function(buffer)
-- Filetypes for which buffer completions are enabled; add filetypes to extend
-- Make buffer compeletions appear at the end.
score_offset = -100,
enabled = function()
-- Filetypes for which buffer completions are enabled; add filetypes to extend:
local enabled_filetypes = {
'markdown',
'text',
}
local filetype = vim.bo[buffer].filetype
local filetype = vim.bo.filetype
return vim.tbl_contains(enabled_filetypes, filetype)
end,
},