Skip to content

Commit 50eba91

Browse files
MN-nagyoriori1703
authored andcommitted
Updated filter files func in blink.cmp
1 parent 63f9087 commit 50eba91

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

init.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,14 +885,15 @@ require('lazy').setup({
885885
default = { 'lsp', 'path', 'snippets', 'buffer' },
886886
providers = {
887887
buffer = {
888-
score_offset = -1,
889-
filter = function(buffer)
890-
-- Filetypes for which buffer completions are enabled; add filetypes to extend
888+
-- Make buffer compeletions appear at the end.
889+
score_offset = -100,
890+
enabled = function()
891+
-- Filetypes for which buffer completions are enabled; add filetypes to extend:
891892
local enabled_filetypes = {
892893
'markdown',
893894
'text',
894895
}
895-
local filetype = vim.bo[buffer].filetype
896+
local filetype = vim.bo.filetype
896897
return vim.tbl_contains(enabled_filetypes, filetype)
897898
end,
898899
},

0 commit comments

Comments
 (0)