aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kdx@42l.fr>2023-01-20 04:03:16 +0100
committerkdx <kdx@42l.fr>2023-01-20 04:03:16 +0100
commit1e7ade98b171ed12b6205e8a57b7519e6812a3db (patch)
treeacad4e941a67fe2c37763209afbd88d03a8d4bb3
parent632cff843c5cc5c30c5ec6ccef9754e68f41a992 (diff)
downloadnvim-config-1e7ade98b171ed12b6205e8a57b7519e6812a3db.tar.gz
snippet navigation
-rw-r--r--lsp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp.lua b/lsp.lua
index c9e06c9..03a440c 100644
--- a/lsp.lua
+++ b/lsp.lua
@@ -19,8 +19,6 @@ keyset("i", "<S-TAB>", [[coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"]], opts)
-- <C-g>u breaks current undo, please make your own choice
keyset("i", "<cr>", [[coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"]], opts)
--- Use <c-j> to trigger snippets
-keyset("i", "<c-j>", "<Plug>(coc-snippets-expand-jump)")
-- Use <c-space> to trigger completion
keyset("i", "<c-space>", "coc#refresh()", {silent = true, expr = true})
@@ -173,3 +171,5 @@ keyset("n", "<space>j", ":<C-u>CocNext<cr>", opts)
keyset("n", "<space>k", ":<C-u>CocPrev<cr>", opts)
-- Resume latest coc list
keyset("n", "<space>p", ":<C-u>CocListResume<cr>", opts)
+
+vim.g.coc_snippet_next = "<C-j>"