blob: 622f23d94741e4a7bd541376ff60c4464d62a883 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
for _, v in ipairs {
'builtins',
'plugins',
'readline',
} do
require ('bindings.' .. v)
end
-- general bindings that aren't specific to a plugin
require 'which-key'.register {
-- diagnostics
['<leader>'] = {
e = { vim.diagnostic.open_float, 'diag float' },
q = { vim.diagnostic.setloclist, 'diag locations' },
},
['[d'] = { vim.diagnostic.goto_prev, 'prev diag' },
[']d'] = { vim.diagnostic.goto_next, 'next diag' },
}
|