jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
695 stars 41 forks source link

nvim-cmp autocompletion for .md files and citation keys #165

Closed kvngvikram closed 1 year ago

kvngvikram commented 1 year ago

Added a new module called cmp which can be disabled in config.

This pull request gives autocompletion support when typing in insert mode. Here are some imaegs Screenshot from 2023-07-01 06-14-25 Screenshot from 2023-07-01 06-15-33 Screenshot from 2023-07-01 06-14-04 Screenshot from 2023-07-01 06-13-55

One has to add the new source called 'mkdnflow' in their nvim-cmp config. This cmp source will work only inside a working zencaster notebook where a root directory is identified.

All the .md files in the notebook are displayed in the completion menu, without any foldername or extension. A valid link is inserted after selection.

Bibliography file parsing is taken from cmp-pandoc-references

jakewvincent commented 1 year ago

Thanks for contributing this @kvngvikram--looks great! Sorry I've been a bit slow to reply to this and your issue. Will take a look at and merge this ASAP.

jakewvincent commented 1 year ago

Merged into dev branch for testing.