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

Duplicated completion entries with random (?) case #579

Open
anuramat opened this issue May 8, 2024 · 1 comment
Open

Duplicated completion entries with random (?) case #579

anuramat opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@anuramat
Copy link

anuramat commented May 8, 2024

🐛 Describe the bug

upper-case aliases get multiple entries with randomly changing case:

image

image

Config

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
	vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"--single-branch",
		"https://github.com/folke/lazy.nvim.git",
		lazypath,
	})
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
	{
		"epwalsh/obsidian.nvim",
		version = "*", -- recommended, use latest release instead of latest commit
		lazy = false,
		dependencies = {
			"nvim-lua/plenary.nvim",
			-- optionals:
			"hrsh7th/nvim-cmp",
			"nvim-telescope/telescope.nvim",
			"nvim-treesitter/nvim-treesitter",
		},
		opts = {
			workspaces = {
				{
					name = "vault",
					path = "~/vault",
				},
			},
		},
	},
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

Environment

NVIM v0.10.0-dev-feaab21
Build type: Release
LuaJIT 2.1.1693350652
Run "nvim -V1 -v" for more info

Obsidian.nvim v3.7.12 (db41b1f20459293436fab510bec58c82a73bd1f7)
Status:
  • buffer directory: nil
  • working directory: /home/anuramat/minimal
Workspaces:
  ✓ active workspace: Workspace(name='vault', path='/home/anuramat/vault', root='/home/anuramat/vault')
Dependencies:
  ✓ plenary.nvim: 08e301982b9a057110ede7a735dd1b5285eb341f
  ✓ nvim-cmp: cd2cf0c124d3de577fb5449746568ee8e601afc8
  ✓ telescope.nvim: fac83a556e7b710dc31433dec727361ca062dbe9
Integrations:
  ✓ picker: TelescopePicker()
  ✓ completion: enabled (nvim-cmp) ✗ refs, ✗ tags, ✗ new
    all sources:
Tools:
  ✓ rg: ripgrep 13.0.0
Environment:
  • operating system: Linux
Config:
  • notes_subdir: nil
@anuramat anuramat added the bug Something isn't working label May 8, 2024
@epwalsh
Copy link
Owner

epwalsh commented May 16, 2024

@anuramat, Obsidian.nvim tries to guess the case a user wants in this function. I'm happy to accept a PR to improve this.

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

2 participants