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 ()
|
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({
|
||||||
|
|
Loading…
Reference in a new issue