seantronsen / neovim-config

0 stars 0 forks source link

Snippet Issues and Enhancements #12

Open seantronsen opened 1 year ago

seantronsen commented 1 year ago
seantrons commented 1 year ago

Some more additions, time permitting:

-- add snippet for plane notation (P_1) with the weird squiggle P -- add snippet for stackable primes (derivatives) integrals, etc. -- snippets should include the \ symbol when consuming for easier stacking. -- add snippet for parallel

seantrons commented 1 year ago

Implementation in progress

seantronsen commented 1 year ago

Many of the requested updates have been implemented. Addressing them somewhat in order:

Part II:

seantronsen commented 1 year ago

To recap, we still need to add stackable derivative and integral notation, but all the issues mentioned previously in this thread have otherwise been fixed.

seantronsen commented 1 year ago

The new triggers for the snippets are better, but also suffer from some of the same issues as those which came before. For instance, the trigger for \bar ('b {} ') expands the way it was designed too, but that design didn't consider the user typing in the expression b \cos \theta. For this reason, the new design remains a failure despite being more functional.

seantronsen commented 1 year ago

There is also a need to do another round of refactoring for the math snippets and create a more general function that handles the set up.

seantronsen commented 1 year ago

Relying on the space character for expansion is a bit tedious too.