[nvim] Move neovim config to /nvim

This commit is contained in:
Eryn Wells 2026-01-24 15:25:05 -08:00
parent e45c1694af
commit 5b567ad2ad
28 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,38 @@
# rust.snippets
# vim: set ts=8 sw=8 sts=8 noet list:
# Eryn Wells <eryn@erynwells.me>
snippet nnapp
// Eryn Wells <eryn@erynwells.me>
use nannou::prelude::*;
struct Model {
_window: window::Id,
}
impl Model {
fn new(app: &App) -> Self {
let window = app.new_window().view(view).build().unwrap();
Self {
_window: window,
}
}
fn update(app: &App, model: &mut Model, update: Update) {
model.update(app, update)
}
fn update(&mut self, app: &App, update: Update) {
// TODO: Update the model here.
}
}
fn view(app: &App, model: &Model, frame: Frame) {
// TODO: Draw the view here.
}
fn main() {
nannou::app(Model::new).update(update).run();
}
endsnippet