Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link completion only works at start of line #243

Closed
alicekaerast opened this issue Nov 23, 2023 · 3 comments
Closed

Link completion only works at start of line #243

alicekaerast opened this issue Nov 23, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@alicekaerast
Copy link

🐛 Describe the bug

The only way I can get completion to work when creating links is when the link is the very start of a line. Otherwise it simply doesn't work. I'm a Lunarvim user and my configuration looks like:

lvim.plugins = {
  {
    "epwalsh/obsidian.nvim",
    version = "*",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp"
    },
    opts = {
      workspaces = {
        {
          name = "notes",
          path = "/Users/Alice/notes"
        }
      },
      daily_notes = {
        folder = "Inbox/Daily",
        date_format = "%Y/%m-%B/%Y-%m-%e-%A",
        alias_format = "%Y-%m-%d",
        template = "Daily Note Template.md",
      },
      completion = {
        nvim_cmp = true,
        min_chars = 2,
      },
      templates = {
        subdir = "90-99 system/90 templates",
      },
      finder = "telescope.nvim",
    }
  }
}

Versions

NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1700008891

"nvim-cmp": { "branch": "main", "commit": "11102d3db12c7f8b35265ad0e17a21511e5b1e68" },
"obsidian.nvim": { "branch": "main", "commit": "5fa1ab80eeab116353f67e658c4924325b714b51" },

@alicekaerast alicekaerast added the bug Something isn't working label Nov 23, 2023
@linduxed
Copy link

I have the same issue.

Bisecting points to #237 being where the first bad commit (bfa9437) is introduced.

@epwalsh
Copy link
Owner

epwalsh commented Nov 23, 2023

Ugh, nvim-cmp is very finicky sometimes 🤦 Fixed as of 9e3709f

@linduxed
Copy link

Thank you very much for fixing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants