vimcompletion | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / vimcompletion

vimcompletion

maintained by khulnasoft

star 0 account_tree 4 verified_user MIT License
bolt View GitHub

name: vim.completion description: Autocompletion and Snippets usage

Neovim Completion & Snippets Skills

This document covers the autocompletion engine (nvim-cmp) and snippet engine (LuaSnip).


Autocompletion (hrsh7th/nvim-cmp)

The framework for autocompletion.

Mapping (Insert Mode)

  • <C-p>: Select previous item.
  • <C-n>: Select next item.
  • <C-y>: Confirm selection.
  • <C-Space>: Explicitly trigger completion.

Completion Sources

  • copilot: AI-powered suggestions.
  • nvim_lsp: Suggestions from the LSP.
  • luasnip: Snippet expansions.
  • buffer: Words from the current buffer.

Snippets (L3MON4D3/LuaSnip)

Advanced snippet engine for fast code expansion.

Keybindings (Insert/Select Mode)

  • <C-s>e: Expand current snippet.
  • <C-s>;: Jump to the next companion placeholder in a snippet.
  • <C-s>,: Jump to the previous placeholder.
  • <C-E>: Cycle through alternative choices in a snippet.

Snippet Packs

  • Friendly Snippets: A massive collection of ready-to-use snippets for most languages.

API Reference (LuaSnip)

local ls = require("luasnip")

ls.expand()                     -- Expand snippet
ls.jump(1)                      -- Jump forward
ls.jump(-1)                     -- Jump backward
ls.choice_active()              -- Check if choice node is active
ls.change_choice(1)             -- Change choice

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 4
Created Mar 2026
Last Updated il y a 3 mois
tools tools ide plugins

Related Skills

writing-skills
chevron_right
codex
chevron_right
smart-illustrator
chevron_right
collaborating-with-codex
chevron_right
code-review-router
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.