mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Merge pull request #347 from genebean/fix-completions
Stop suggesting random text as a snippet.
This commit is contained in:
commit
a54cbc630d
1 changed files with 7 additions and 2 deletions
|
|
@ -23,8 +23,13 @@ return {
|
|||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" }, -- For luasnip users.
|
||||
{
|
||||
name = "nvim_lsp",
|
||||
entry_filter = function(entry)
|
||||
return require("cmp.types").lsp.CompletionItemKind[entry:get_kind()] ~= "Text"
|
||||
end,
|
||||
},
|
||||
{ name = "luasnip" },
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue