Closed kiryph closed 5 months ago
Since setup merges options each time it is called, you can use autocmd to update only the paths.
require("cmp_dictionary").setup({
exact_length = 3,
})
local dict = {
["*"] = { "/path/to/global_dict" },
gap = { "/path/to/gap_dict" },
}
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function(ev)
require("cmp_dictionary").setup({
paths = dict[ev.match] or dict["*"],
})
end,
})
There are several invalid option names, please check the help and correct them.
:h cmp-dictionary-options
Current config:
As far as I see it stopped working. No completion for gap words.
https://github.com/gap-system/gap/blob/master/etc/vim/gap.vim#L170-L173
New version complains that switcher is deprecated and I see no help in the documentation.