mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
When lsp-mode is active, it tries to ensure it's own lsp-completion-at-point function is listed before any other functions in completion-at-point-functions. This however prevents completions for yasnippet snippets and files/folders from working, as completion never moved on beyond lsp-completion-at-point. Previously I had managed to fix this by using the DEPTH option of add-hook to get siren-yasnippet-capf and cape-file to run before lsp-completion-at-point. But it seems lsp-mode has changed from using add-hook to a more custom method of always ensuring lsp-completion-at-point is always first on the list. Hence we need to the same using the new siren-prepend macro I recently added.