autocompletios keybindings
This commit is contained in:
parent
7e410217f7
commit
ac39fcf0e3
2 changed files with 22 additions and 1 deletions
|
@ -411,7 +411,11 @@
|
||||||
|
|
||||||
#[espeak]
|
#[espeak]
|
||||||
# summary = "*"
|
# summary = "*"
|
||||||
# script = dunst_espeak.sh
|
# script = /home/soeren.poschmann/.config/dunst/dunst_espeak.sh
|
||||||
|
|
||||||
|
[beep]
|
||||||
|
summary = "*"
|
||||||
|
script = /home/soeren.poschmann/scripts/notify-beep.sh
|
||||||
|
|
||||||
#[script-test]
|
#[script-test]
|
||||||
# summary = "*script*"
|
# summary = "*script*"
|
||||||
|
|
|
@ -12,3 +12,20 @@ end)
|
||||||
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
|
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
|
||||||
|
|
||||||
lsp.setup()
|
lsp.setup()
|
||||||
|
|
||||||
|
local cmp = require('cmp')
|
||||||
|
local cmp_action = require('lsp-zero').cmp_action()
|
||||||
|
|
||||||
|
cmp.setup({
|
||||||
|
mapping = {
|
||||||
|
-- `Enter` key to confirm completion
|
||||||
|
['<CR>'] = cmp.mapping.confirm({select = false}),
|
||||||
|
|
||||||
|
-- Ctrl+Space to trigger completion menu
|
||||||
|
['<C-Space>'] = cmp.mapping.complete(),
|
||||||
|
|
||||||
|
-- Navigate between snippet placeholder
|
||||||
|
['<C-f>'] = cmp_action.luasnip_jump_forward(),
|
||||||
|
['<C-b>'] = cmp_action.luasnip_jump_backward(),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue