See the new site: https://postgresisenough.dev
| [ | |
| { | |
| "context": "Editor && (edit_prediction && showing_completions)", | |
| "bindings": { | |
| "tab": "editor::AcceptEditPrediction" | |
| } | |
| }, | |
| // Terminal | |
| { | |
| "context": "Workspace", |
| { | |
| "theme": "Gruvbox Dark Hard", | |
| "base_keymap": "VSCode", | |
| "buffer_font_family": "BerkeleyMono Nerd Font", | |
| "buffer_font_size": 15, | |
| "vim_mode": true, | |
| "relative_line_numbers": true, | |
| "cursor_blink": false, | |
| "scrollbar": { | |
| "show": "never" |
| [ | |
| { | |
| "context": "Editor && VimControl && !VimWaiting && !menu", | |
| "bindings": { | |
| "ctrl-w z": "workspace::ToggleZoom", | |
| "ctrl-w t": "terminal_panel::ToggleFocus", | |
| "g ]": "editor::GoToDiagnostic", | |
| "g [": "editor::GoToPrevDiagnostic", | |
| "g r": "editor::FindAllReferences", | |
| "shift-k": "editor::Hover", |
| -- Add the following in your custom/configs/overrides.lua file. You can configure copilot to meet your needs here. | |
| M.copilot = { | |
| -- Possible configurable fields can be found on: | |
| -- https://github.com/zbirenbaum/copilot.lua#setup-and-configuration | |
| suggestion = { | |
| enable = false, | |
| }, | |
| panel = { | |
| enable = false, |
Any improvements or alternative approaches are welcome!
One alternative approach can be found in the CharlieMcVicker/mathjax-react library.
It may be possible to bundle MathJax with the rest of your JavaScript, which might have the nice consequence of allowing you to import it instead of using the global MathJax object. But I found it simpler to include the following at the bottom of my html file; this is the common way to load MathJax.
macOS has ncurses version 5.7 which doesn't ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color you can use screen-256color, place this command into your ~/.tmux.conf.
set-option -g default-terminal "screen-256color"
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
| #!/bin/bash | |
| set -eu | |
| _UID=$(id -u) | |
| GID=$(id -g) | |
| # give lxd permission to map your user/group id through | |
| grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root | |
| # set up a separate key to make sure we can log in automatically via ssh | |
| # with $HOME mounted |
