hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
493 stars 42 forks source link

`cabbrev` user commands are not shown #69

Open steliyan opened 1 year ago

steliyan commented 1 year ago

I am not sure if this is even supposed to work, but these cabbrev doesn't seem to work:

vim.cmd([[
  cabbrev <expr> SessionSave getcmdtype() == ":" && getcmdline() == "SessionSave" ? "SaveSession" : "SessionSave"
]])

Maybe the registration order matters? Should this be done before or after the cmp-cmdline is loaded?