Skip to content

Instantly share code, notes, and snippets.

@mglnsk
mglnsk / wezterm.lua
Created October 8, 2025 16:11
wezterm config | Oct 2025 [windows]
-- wezterm config inspired by
-- https://mayberoot.medium.com/the-perfect-windows-11-dev-environment-setup-with-wezterm-wsl2-and-neovim-d73ab1202703
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
local mouse_bindings = {}
if wezterm.config_builder then
config = wezterm.config_builder()
@mglnsk
mglnsk / init.vim
Last active June 24, 2024 12:29
nvim config (0.7 compatible)
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' " find config
if empty(glob(data_dir . '/autoload/plug.vim')) " install VimPlug if not installed
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) " Run PlugInstall if there are missing plugins
\| PlugInstall --sync | source $MYVIMRC
\| endif