Appease the linter

main
Amanda Graven 2023-01-29 13:07:53 +01:00
parent c88dcb4bd9
commit 076da2f31e
Signed by: amanda
GPG Key ID: F747582C5608F4CB
1 changed files with 3 additions and 2 deletions

View File

@ -114,7 +114,7 @@ do
which_key.register { ['<C-l>'] = {function ()
local ok, notify = pcall(require, 'notify')
if ok then
notify.dismiss()
notify.dismiss{}
end
vim.cmd('nohlsearch|diffupdate|normal! <C-l>')
end, 'Clear'} }
@ -664,7 +664,7 @@ cmp.setup {
-- Complete common substring
['<C-l>'] = cmp.mapping(cmp.mapping.complete_common_string(), {'i', 'c'}),
-- Complete
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), {'i', 'c'}),
['<C-Space>'] = cmp.mapping(cmp.mapping.complete{}, {'i', 'c'}),
-- Confirm
['<CR>'] = 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({