mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
refactor(cmp): add optional where necessary
Makes it easier to disable it for users who want to try other completion engines, without it being pulled back by some Extra.
This commit is contained in:
parent
13a4a84e34
commit
0f15ef90e9
5 changed files with 6 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ return {
|
|||
-- snippets
|
||||
{
|
||||
"nvim-cmp",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{
|
||||
"garymjr/nvim-snippets",
|
||||
|
|
@ -209,6 +210,7 @@ return {
|
|||
-- Add lazydev source to cmp
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "lazydev", group_index = 0 })
|
||||
end,
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ return {
|
|||
-- Tabnine cmp source
|
||||
{
|
||||
"nvim-cmp",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{
|
||||
"tzachar/cmp-tabnine",
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ return {
|
|||
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
opts.auto_brackets = opts.auto_brackets or {}
|
||||
table.insert(opts.auto_brackets, "python")
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ return {
|
|||
-- Extend auto completion
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{
|
||||
"Saecki/crates.nvim",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ return {
|
|||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{ "roobert/tailwindcss-colorizer-cmp.nvim", opts = {} },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue