This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |