Appease the linter
This commit is contained in:
parent
c88dcb4bd9
commit
076da2f31e
5
init.lua
5
init.lua
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue