This somewhat works around some changes to cape, which I was abusing to
effectively get a capf yasnippet function that would only return results
on exact matches. This allows normal lsp completion to work just fine,
except for exact matches against specific snippets.
Now we use the yasnippet-capf package instead, no longer needing the
company-yasnippet package, and hacking it to also only give a single
result back, with some caveats.
This reverts commit 2dfc86b610.
Removing navigate action on {} pair has a lot more side effects which
are very annoying. I will need to find another workaround.
The upstream queries have been modified causing a dramatic change to the
visual coloring of syntax highlighting of YAML files when using
tree-sitter-mode. Hence I'm here setting custom highlight queries that
work my preferred way.
As of v3.x prettier can no longer load plugins installed via npm
globally. The prettier-pnp package/binary works around this by acting as
a wrapper with more flexible support for loading plugins.
When using a custom function, completion icons did not render. I assume
it's cause no completion category was correctly set. Using an advice
seems to resolve it, as is potentially a better solution.
When the global-treesit-auto-mode is enabled, was getting lots of errors
related to an infinite loop whenever opening a buffer supported by one
of `*-ts-mode` modes. Instead, I now take a more manual and intentional
approach to using the built-in treesit modes for specific languages.
The fussy package now comes with helper functions to strip down an input
string, removing all extra "tofu" characters added by Consult. This is
also faster than the old hand-rolled solution I had come up with
previously.
Hence I've switch to simpler variant that uses a custom scoring function
that calls `flx-rs-score`, with `str` having been sanitized with the
function assigned to `fussy-remove-bar-char-fn`, which by default is
`fussy-without-tofu-char`.
I've also submitted a PR to fussy that will cleanup the input string
when using flx-rs:
https://github.com/jojojames/fussy/pull/36