Skip to content

Instantly share code, notes, and snippets.

View jam1015's full-sized avatar

Jordan Mandel jam1015

  • Johns Hopkins University
  • United States
View GitHub Profile
@jam1015
jam1015 / cmp_help.md
Last active December 27, 2023 22:25
Request: Help Configuring Command Line Completion in Nvim-Cmp

I'm using nvim-cmp.

Here is the issue I'm facing;

In the command line completion for : if I start with / or . , path source completion gets triggered. If I tab through the entries to a directory, a trailing / is not appended, and when I type in the trailing / , then I can autocomplete the files and directories contained in the directory I just appended / to.

But if I don't start with . or / then cmdline source completion is used, and when I select a directory, a trailing / is appended and I have to delete it and retype it to autocomplete files and directories on the next level. Adding a second / starts autocomplete using the path source from the root directory, /.