Skip to content

Contact management and autocomplete system for Neovim.

License

Notifications You must be signed in to change notification settings

michhernand/RLDX.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLDX.nvim

Logo

Experience an Issue?

  1. Review the Known Issues to find a workaround.
  2. If the issue is new then create a Github issue.

Features

  • Autocomplete for your contact list.
  • Syntax highlighting for contacts. Demo1

Requirements

Installation

  1. Add to your Neovim package manager's configuration. See specific steps below.
  2. Update your cmp-nvim configuration.

nvim-cmp configuration for all file types.

require('cmp').setup({
    sources = {
        { name = 'cmp_rolodex' }
    }
})

nvim-cmp configuration for select file types.

require('cmp').setup.filetype('org', {
    sources = {
        { name = 'cmp_rolodex' }
    },
 })

Package Managers

Lazy

lazy configuration for all file types.

{
    "michhernand/RLDX.nvim",
    lazy = true,
    event = { "BufReadPost", "BufNewFile" },
    opts = {} -- see configuration docs for details
}

lazy configuration for select file types.

{
    "michhernand/RLDX.nvim",
    lazy = true,
    event = {
        "BufReadPost *.org", "BufNewFile *.org",
        "BufReadPost *.md", "BufNewFile *.md",
    },
    opts = {} -- see configuration docs for details
}

Other Package Managers Coming Soon

...

Configuration

Default Configuration

opts = {
    prefix_char = "@",
    db_filename = os.getenv("HOME") .. "/.rolodex/db.json"),
    highlight_enabled = true,
    highlight_color = "00ffff",
    highlight_bold = true
}

Prefix Char

prefix_char (str) is the character that triggers autocomplete.

DB Filename

db_filename (str) is the location where your contacts are stored.

Highlighting

Highlight Enabled

highlight_enabled (bool) is a flag indicating whether highlighting of names is enabled.

Highlight Color

highlight_color (str) is a hex color code indicating what color names should be highlighted as.

Highlight Bold

highlight_bold (bool) is a flag indicating whether highlighted names should be bolded.

Usage

Autocomplete

Demo for Autocomplete

Adding Contacts

Demo for Adding Contacts

Roadmap

  • Delete contacts.
  • Update contacts.
  • Grep files by contact name.

Known Issues

Shows duplicate autocomplete recommendations.

This appears to happen when you add contacts and then query them in the same session. A workaround is to exit and re-launch Neovim.

Highlighting does not initialize on lazy loading.

This appears to happen when lazy loading with Lazy.nvim. A workaround is to set lazy = false in opts.

  • Only highlighting is affected here. Other functionality is unaffected.

Highlighting does not intiialize some org-roam files.

This appears to happen when a new org-roam file is created via org-roam-capture. This resolves when Neovim is restarted.

  • Only highlighting is affected here. Other functionality is unaffected.

About

Contact management and autocomplete system for Neovim.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages