Fix some lint in completsions.lua

This commit is contained in:
Kenneth Benzie 2025-08-13 14:54:15 +01:00
parent 00f87db692
commit 4f38790589

View File

@ -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({})