Skip to content

Instantly share code, notes, and snippets.

View nonnontrivial's full-sized avatar

Kevin Donahue nonnontrivial

View GitHub Profile
@nonnontrivial
nonnontrivial / init.lua
Created April 21, 2025 20:24
nvim config
vim.o.relativenumber = true -- relative line numbers
vim.o.number = true -- show absolute number on current line
vim.o.cursorline = true -- highlight current line
vim.o.clipboard = 'unnamedplus' -- Use the system clipboard by default
vim.cmd [[packadd packer.nvim]]
require('packer').startup(function(use)
use { 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/plenary.nvim' } }
@nonnontrivial
nonnontrivial / complete.py
Created August 18, 2024 20:11
gpt in the terminal
#!/usr/bin/env python
import os
import sys
import platform
from openai import OpenAI
from openai.types.chat.chat_completion_chunk import Choice
api_key = os.getenv("OPENAI_KEY", "")
@nonnontrivial
nonnontrivial / settings.json
Last active April 6, 2025 21:58
zed config
{
"vim_mode": true,
"cursor_blink": false,
"vertical_scroll_margin": 0,
"buffer_line_height": "standard",
"buffer_font_family": "Fira Code",
"icon_theme": "Colored Zed Icons Theme Dark",
"scrollbar": {
"show": "never"
},
@nonnontrivial
nonnontrivial / keybindings.json
Last active November 14, 2023 16:47
vscode keybindings
[
{
"key": "ctrl+shift+d",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
@nonnontrivial
nonnontrivial / settings.json
Last active December 8, 2023 13:44
vscode settings
{
"telemetry.telemetryLevel": "off",
"git.enableSmartCommit": true,
"python.defaultInterpreterPath": "/usr/local/bin/python3",
"python.analysis.extraPaths": [
"~/Library/Python/3.11/lib/python/site-packages"
],
"python.testing.pytestEnabled": true,
"python.analysis.typeCheckingMode": "off",
"[python]": {