diff --git a/init.lua b/init.lua index e7e0373..2d24050 100644 --- a/init.lua +++ b/init.lua @@ -114,7 +114,7 @@ do which_key.register { [''] = {function () local ok, notify = pcall(require, 'notify') if ok then - notify.dismiss() + notify.dismiss{} end vim.cmd('nohlsearch|diffupdate|normal! ') end, 'Clear'} } @@ -664,7 +664,7 @@ cmp.setup { -- Complete common substring [''] = cmp.mapping(cmp.mapping.complete_common_string(), {'i', 'c'}), -- Complete - [''] = cmp.mapping(cmp.mapping.complete(), {'i', 'c'}), + [''] = cmp.mapping(cmp.mapping.complete{}, {'i', 'c'}), -- Confirm [''] = cmp.mapping(cmp.mapping.confirm { select = false }, {'i', 'c'}), }, @@ -684,6 +684,7 @@ local capabilities = require'cmp_nvim_lsp'.default_capabilities() ---- lsp: language servers ---- --- Performs keymaps and other setup specific to buffers with LSP enabled --- @param bufnr number +--- @diagnostic disable-next-line: unused-local local function on_attach(_client, bufnr) require'which-key'.register({