diff options
author | kdx <kdx@42l.fr> | 2023-01-20 04:03:16 +0100 |
---|---|---|
committer | kdx <kdx@42l.fr> | 2023-01-20 04:03:16 +0100 |
commit | 1e7ade98b171ed12b6205e8a57b7519e6812a3db (patch) | |
tree | acad4e941a67fe2c37763209afbd88d03a8d4bb3 | |
parent | 632cff843c5cc5c30c5ec6ccef9754e68f41a992 (diff) | |
download | nvim-config-1e7ade98b171ed12b6205e8a57b7519e6812a3db.tar.gz |
snippet navigation
-rw-r--r-- | lsp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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>" |