AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.21k stars 240 forks source link

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

Open emgi13 opened 1 month ago

emgi13 commented 1 month ago

Checklist

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

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.)
Uzaaft commented 10 hours ago

pinging @mehalter in case you can fix this.