Skip to content

Commit 6104149

Browse files
authored
docs: fix enabled_providers example function, correct typos (#466)
1 parent 765ee4c commit 6104149

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Setting capabilities for `nvim-lspconfig`:
112112
config = function(_, opts)
113113
local lspconfig = require('lspconfig')
114114
for server, config in pairs(opts.servers) do
115-
-- passing config.capabilities to blink.cmp merges with the capabilities in your
115+
-- passing config.capabilities to blink.cmp merges with the capabilities in your
116116
-- `opts[server].capabilities, if you've defined it
117117
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
118118
lspconfig[server].setup(config)
@@ -123,7 +123,7 @@ Setting capabilities for `nvim-lspconfig`:
123123
config = function()
124124
local capabilities = require('blink.cmp').get_lsp_capabilities()
125125
local lspconfig = require('lspconfig')
126-
126+
127127
lspconfig['lua-ls'].setup({ capabilities = capabilities })
128128
end
129129
}
@@ -183,7 +183,7 @@ MiniDeps.add({
183183
-- preset = 'default',
184184
-- ['<Up>'] = { 'select_prev', 'fallback' },
185185
-- ['<Down>'] = { 'select_next', 'fallback' },
186-
--
186+
--
187187
-- -- disable a keymap from the preset
188188
-- ['<C-e>'] = {},
189189
-- },
@@ -310,7 +310,7 @@ MiniDeps.add({
310310
-- 'manual' will not select any item by default
311311
-- 'auto_insert' will not select any item by default, and insert the completion items automatically
312312
-- when selecting them
313-
--
313+
--
314314
-- You may want to bind a key to the `cancel` command, which will undo the selection
315315
-- when using 'auto_insert'
316316
cycle = {
@@ -475,7 +475,7 @@ MiniDeps.add({
475475
enabled = false,
476476
},
477477
},
478-
478+
479479
-- Experimental signature help support
480480
signature = {
481481
enabled = false,
@@ -507,7 +507,7 @@ MiniDeps.add({
507507
-- when enabled, allows for a number of typos relative to the length of the query
508508
-- disabling this matches the behavior of fzf
509509
use_typo_resistance = true,
510-
-- frencency tracks the most recently/frequently used items and boosts the score of the item
510+
-- frecency tracks the most recently/frequently used items and boosts the score of the item
511511
use_frecency = true,
512512
-- proximity bonus boosts the score of items matching nearby words
513513
use_proximity = true,
@@ -542,12 +542,12 @@ MiniDeps.add({
542542
-- local node = vim.treesitter.get_node()
543543
-- if vim.bo.filetype == 'lua' then
544544
-- return { 'lsp', 'path' }
545-
-- elseif node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }), node:type())
545+
-- elseif node and vim.tbl_contains({ 'comment', 'line_comment', 'block_comment' }, node:type()) then
546546
-- return { 'buffer' }
547547
-- else
548548
-- return { 'lsp', 'path', 'snippets', 'buffer' }
549549
-- end
550-
-- end
550+
-- end,
551551
},
552552

553553
-- Please see https://github.com/Saghen/blink.compat for using `nvim-cmp` sources

0 commit comments

Comments
 (0)