-
Enabling rails codelens navigation in neovim with ruby_lsp
I’ve moved over entirely to using neovim for my rails development, with the ruby_lsp integration with neovim making it a real pleasure. This includes ‘luxury’ features I’d previously seen in GUI IDEs, like codelens annotations, which allow you to see the route signature for a given action amongst other things:
-
Finding all rows within a radius in SQLite
Where :lat and :lng are the latitude and longitude of the point of interest, and :radius is the radius in kilometres:
-
Configuring ULIDs for SQLite in rails+litestack
ULIDs are Universally Unique Lexicographically Sortable Identifiers, a sortable and more compact alternative to UUIDs that are appropriate in certain use cases.