fix(nvim): do not use too high a priority in cmp sources
This causes the sources to not work. Probably a bug up in cmp.
This commit is contained in:
parent
8499ce9217
commit
c6b79121c6
@ -355,25 +355,25 @@ return {
|
|||||||
-- Git Commit Completions
|
-- Git Commit Completions
|
||||||
cmp.setup.filetype("gitcommit", {
|
cmp.setup.filetype("gitcommit", {
|
||||||
sources = standard_sources({
|
sources = standard_sources({
|
||||||
{ name = "git", priority = 99 },
|
{ name = "git", priority = 20 },
|
||||||
{ name = "conventionalcommits", priority = 98 }
|
{ name = "conventionalcommits", priority = 19 }
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
cmp.setup.filetype("octo", {
|
cmp.setup.filetype("octo", {
|
||||||
sources = standard_sources({
|
sources = standard_sources({
|
||||||
{ name = "git", priority = 99 }
|
{ name = "git", priority = 20 }
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
cmp.setup.filetype("sql",
|
cmp.setup.filetype("sql",
|
||||||
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) })
|
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 20 } }) })
|
||||||
cmp.setup.filetype("mysql",
|
cmp.setup.filetype("mysql",
|
||||||
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) })
|
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 20 } }) })
|
||||||
cmp.setup.filetype("plsql",
|
cmp.setup.filetype("plsql",
|
||||||
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 99 } }) })
|
{ sources = standard_sources({ { name = "vim-dadbod-completion", priority = 20 } }) })
|
||||||
cmp.setup.filetype("toml", { sources = standard_sources({ { name = "crates" } }) })
|
cmp.setup.filetype("toml", { sources = standard_sources({ { name = "crates" } }) })
|
||||||
cmp.setup.filetype("org", { sources = standard_sources({ { name = "orgmode", priority = 99 } }) })
|
cmp.setup.filetype("org", { sources = standard_sources({ { name = "orgmode", priority = 20 } }) })
|
||||||
|
|
||||||
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
||||||
cmp.setup.cmdline("/", {
|
cmp.setup.cmdline("/", {
|
||||||
|
Loading…
Reference in New Issue
Block a user