Skip to content

Commit

Permalink
feat: more guard
Browse files Browse the repository at this point in the history
  • Loading branch information
qapquiz committed Jan 1, 2025
1 parent 792dbdc commit ca7a9f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/plugins/blink.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local configs = require('configs')

local blink_default = {
local blink_default_config = {
'saghen/blink.cmp',
lazy = false,
dependencies = {
Expand Down Expand Up @@ -39,8 +39,7 @@ local blink_default = {
},
}

local ai_config =
configs.ai.enabled
local ai_config = configs.ai and configs.ai.enabled
and {
dependencies = {
{ 'rafamadriz/friendly-snippets' },
Expand All @@ -63,7 +62,7 @@ local ai_config =
}
or {}

local blink_final_config = vim.tbl_deep_extend('force', blink_default, ai_config)
local blink_final_config = vim.tbl_deep_extend('force', blink_default_config, ai_config)

return {
{ 'saghen/blink.compat' },
Expand Down

0 comments on commit ca7a9f0

Please sign in to comment.