Appease the linter

This commit is contained in:
Amanda Graven 2023-01-29 13:07:53 +01:00
parent c88dcb4bd9
commit 076da2f31e
Signed by: amanda
GPG key ID: F747582C5608F4CB

View file

@ -114,7 +114,7 @@ do
which_key.register { ['<C-l>'] = {function () which_key.register { ['<C-l>'] = {function ()
local ok, notify = pcall(require, 'notify') local ok, notify = pcall(require, 'notify')
if ok then if ok then
notify.dismiss() notify.dismiss{}
end end
vim.cmd('nohlsearch|diffupdate|normal! <C-l>') vim.cmd('nohlsearch|diffupdate|normal! <C-l>')
end, 'Clear'} } end, 'Clear'} }
@ -664,7 +664,7 @@ cmp.setup {
-- Complete common substring -- Complete common substring
['<C-l>'] = cmp.mapping(cmp.mapping.complete_common_string(), {'i', 'c'}), ['<C-l>'] = cmp.mapping(cmp.mapping.complete_common_string(), {'i', 'c'}),
-- Complete -- Complete
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), {'i', 'c'}), ['<C-Space>'] = cmp.mapping(cmp.mapping.complete{}, {'i', 'c'}),
-- Confirm -- Confirm
['<CR>'] = cmp.mapping(cmp.mapping.confirm { select = false }, {'i', 'c'}), ['<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 ---- ---- lsp: language servers ----
--- Performs keymaps and other setup specific to buffers with LSP enabled --- Performs keymaps and other setup specific to buffers with LSP enabled
--- @param bufnr number --- @param bufnr number
--- @diagnostic disable-next-line: unused-local
local function on_attach(_client, bufnr) local function on_attach(_client, bufnr)
require'which-key'.register({ require'which-key'.register({