diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 1d73553..e122bc0 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -173,7 +173,7 @@ return { }, formatting = { - format = function(entry, vim_item) + format = function(_, vim_item) -- Set a limit to how wide the completion menu can be local winwidth = vim.fn.winwidth(vim.api.nvim_get_current_win()) local menuwidth = math.min(winwidth / 2, 70) @@ -191,7 +191,7 @@ return { documentation = cmp.config.window.bordered(), }, - preselect = 'none', -- Don't preselect completions suggested by source + preselect = 'None', -- Don't preselect completions suggested by source }) require("cmp_git").setup({})