Skip to content

Instantly share code, notes, and snippets.

@VonHeikemen
VonHeikemen / init.lua
Last active February 27, 2024 20:09
Minimal configuration of lsp-zero used in the demo https://asciinema.org/a/636643 (doesn't include colorscheme)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
-- Auto-install lazy.nvim if not present
if not vim.loop.fs_stat(lazypath) then
print('Installing lazy.nvim....')
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
@VonHeikemen
VonHeikemen / cli.lua
Created September 29, 2024 01:01
Template for (small) command line scripts written in lua (5.2)
#! /usr/bin/env lua
local function main(argv)
local name = argv[1] or 'World'
sh.spawn('echo "Hello, %s!"', name)
end
---
-- I/O helper functions
@VonHeikemen
VonHeikemen / init.vim
Last active April 17, 2025 01:38
simple neovim config written in vimscript
" vimscript version of the config in this blog post:
" https://vonheikemen.github.io/devlog/tools/simple-neovim-config/
set number
set tabstop=2
set shiftwidth=2
set smartcase
set ignorecase
set nowrap
set nohlsearch
-- Lua config from this blog post:
-- https://vonheikemen.github.io/devlog/tools/simple-neovim-config/
-- Dependencies:
-- https://github.com/neovim/nvim-lspconfig
-- https://github.com/echasnovski/mini.nvim
vim.o.number = true
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.smartcase = true