f2755533de
The auto-completion layer seems not to have been designed/configured correctly. So that, e.g., when using the julia layer, the `auto-completion/init-yasnippet` function is called after the `yasnippet-snippets` package has been loaded. Despite the ``yasnippet-snippets` package containing an `eval-after-load 'yasnippet`, the form within that block is, for some reason, evaluated already before `auto-completion/init-yasnippet` has been called. Anyway, what currently happens is that first `(yasnippet-snippets-initialize)` is evaluated, adding `yasnippet-snippets-dir` to the `yas-snippet-dirs` list. Then ``auto-completion/init-yasnippet` is called which contains the line `(setq yas-snippet-dirs nil)`, setting the list to nil again. As there is quite some logic involved (e.g. the order of evaluation is correct when the julia layer is not being used), this commit fixes the reported issue by simply calling `(yasnippet-snippets-initialize)` from `auto-completion/init-yasnippet` after the yas-snippet-dirs list has been resetted to nil. Any cleaner solution is welcome, but I would say this is a 'harmless' very pragmatic quick fix/solution. |
||
---|---|---|
.. | ||
auto-completion | ||
compleseus | ||
helm | ||
ivy | ||
templates |