Skip to content

Commit

Permalink
docs: Add missing comma in README (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
pynappo authored Nov 20, 2024
1 parent 7c3ad2b commit 03b8975
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ MiniDeps.add({
-- list of enabled providers
completion = {
enabled_providers = { 'lsp', 'path', 'snippets', 'buffer' },
}
},

-- Please see https://github.com/Saghen/blink.compat for using `nvim-cmp` sources
providers = {
Expand Down Expand Up @@ -443,14 +443,18 @@ MiniDeps.add({
kind_icon = {
ellipsis = false,
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
highlight = function(ctx)
return require('blink.cmp.utils').get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind
end,
},

kind = {
ellipsis = false,
width = { fill = true },
text = function(ctx) return ctx.kind end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
highlight = function(ctx)
return require('blink.cmp.utils').get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind
end,
},

label = {
Expand Down
10 changes: 6 additions & 4 deletions lua/blink/cmp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@
--- @field kind_icons? table<string, string>
--- @field blocked_filetypes? string[]

local utils = require('blink.cmp.utils')

--- @type blink.cmp.Config
local config = {
-- The keymap can be:
Expand Down Expand Up @@ -427,14 +425,18 @@ local config = {
kind_icon = {
ellipsis = false,
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
highlight = function(ctx)
return require('blink.cmp.utils').get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind
end,
},

kind = {
ellipsis = false,
width = { fill = true },
text = function(ctx) return ctx.kind end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
highlight = function(ctx)
return require('blink.cmp.utils').get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind
end,
},

label = {
Expand Down

0 comments on commit 03b8975

Please sign in to comment.