Skip to content

Commit c63e1da

Browse files
MN-nagyoriori1703
authored andcommitted
Updated filter files func in blink.cmp
1 parent a830a13 commit c63e1da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

init.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,14 +930,15 @@ require('lazy').setup({
930930
providers = {
931931
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
932932
buffer = {
933-
score_offset = -1,
934-
filter = function(buffer)
935-
-- Filetypes for which buffer completions are enabled; add filetypes to extend
933+
-- Make buffer compeletions appear at the end.
934+
score_offset = -100,
935+
enabled = function()
936+
-- Filetypes for which buffer completions are enabled; add filetypes to extend:
936937
local enabled_filetypes = {
937938
'markdown',
938939
'text',
939940
}
940-
local filetype = vim.bo[buffer].filetype
941+
local filetype = vim.bo.filetype
941942
return vim.tbl_contains(enabled_filetypes, filetype)
942943
end,
943944
},

0 commit comments

Comments
 (0)