Hi Fennel, I'm using the cmp-dictionary approach, which works fine for me. I wasn't aware that it's archived, which is a shame... In order for it to work I did have to specify an absolute path to the dictionaries, though:
local basepath = "/home/kf/.local/share/nvim/site/pack/rocks/start/nvim-lilypond-suite/lilywords/" require("cmp_dictionary").setup({ paths = { basepath .. "grobs", basepath .. "keywords", basepath .. "articulations", basepath .. "grobProperties", basepath .. "paperVariables", basepath .. "headerVariables", basepath .. "contextProperties", basepath .. "clefs", basepath .. "repeatTypes", basepath .. "languageNames", basepath .. "accidentalsStyles", basepath .. "scales", basepath .. "musicCommands", basepath .. "markupCommands", basepath .. "contextsCmd", basepath .. "dynamics", basepath .. "contexts", basepath .. "translators", }, exact_length = 2, first_case_insensitive = true, document = { enable = true, command = { "wn", "${label}", "-over" }, }, }) Fennel, Jun 06, 2024 at 11:04: > The plugin that Kenneth mentions (which I am also using at the moment) is > rather quite broken as far as Emacs or Frescobaldi-style autocompletion is > concerned. > > [nvim-lilypond-suite](https://github.com/martineausimon/nvim-lilypond-suite) > strongly recommends the use of `coc.nvim`, which is not as performant as non > JS-based completion engines like cmp-nvim. The plugin author makes available > a path to working autocomplete via the provided dictionary files that come > bundled with Lilypond, but in order to make that work with `nvim-cmp`, an > additional plugin must be used to integrate dictionary files as a completion > source. AFAIK, [cmp-dictionary](https://github.com/uga-rosa/cmp-dictionary) > is the only plugin that provides this functionality, and it is archived/not > being developed, and it is broken. I cannot get it to load without throwing > an error. > > I really don't feel like asking us to use TabNine as a suitable autocomplete > engine is really the solution, especially because it's not very great at > handling specialized languages like LilyPond. I also don't feel like moving > all of my completion configuration over to `coc.nvim` is really something > that makes sense for one language out of many that I write in my vim config. > I'm kind of at a loss for what I can use in vim to get proper autocomplete > working other than fix the broken archived plugin myself, which I'm not > exactly trying to do at the moment. > > - Fennel