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

Julia pack, unicode autocompletion doesn't remove initial backslash #1236

Closed
4 tasks done
emgi13 opened this issue Oct 8, 2024 · 1 comment · May be fixed by #1271
Closed
4 tasks done

Julia pack, unicode autocompletion doesn't remove initial backslash #1236

emgi13 opened this issue Oct 8, 2024 · 1 comment · May be fixed by #1271
Labels
bug Something isn't working

Comments

@emgi13
Copy link

emgi13 commented Oct 8, 2024

Checklist

  • I have searched through the AstroNvim documentation
  • I have searched through the existing issues of this project
  • I have searched the existing issues of plugins related to this issue
  • I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

0.10.2

Operating system/version

Ubuntu WSL2

Terminal/GUI

Windows Terminal

Describe the bug

When trying to autocomplete a symbol like \in to , the autocomplete turns it into \∈ instead, and the backslash isn't compatible with Julia and has to be manually removed

Steps to Reproduce

  • Launch nvim with repro.lua
  • open a file with .jl ext
  • type \ to trigger autocomplete
  • type in or neq for the relevant symbol
  • press enter to accept

Expected behavior

\in should turn to but instead turns to \∈
\neq should turn to but instead turns to \≠

Screenshots

No response

Additional Context

No response

Minimal configuration

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "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
	-- stylua: ignore
	vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
		lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
	{ "AstroNvim/AstroNvim", import = "astronvim.plugins" },
	{ "AstroNvim/astrocommunity" },
	{ import = "astrocommunity.pack.julia" },

	-- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)
@emgi13 emgi13 added the bug Something isn't working label Oct 8, 2024
@Uzaaft
Copy link
Member

Uzaaft commented Nov 16, 2024

pinging @mehalter in case you can fix 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

Successfully merging a pull request may close this issue.

2 participants