Switch to init.lua
Anirudh Oppiliappan x@icyphox.sh
Thu, 28 Jan 2021 17:29:01 +0530
3 files changed,
25 insertions(+),
113 deletions(-)
A
config/nvim/init.lua
@@ -0,0 +1,18 @@
+vim.cmd 'packadd paq-nvim' +local paq = require 'paq-nvim'.paq +paq{'savq/paq-nvim', opt=true} + +paq 'jiangmiao/auto-pairs' +paq 'airblade/vim-gitgutter' +paq{ 'vim/vim-colors-plain', url='https://git.peppe.rs' } +paq 'dbeniamine/vim-mail' +paq 'tpope/vim-surround' +paq 'plasticboy/vim-markdown' +paq{ 'vim/better-text-objs', url='https://git.peppe.rs' } +paq 'ervandew/supertab' +paq 'wellle/targets.vim' +paq 'tpope/vim-rsi' +paq 'editorconfig/editorconfig-vim' +paq 'zah/nim.vim' + +require('settings')
D
config/nvim/init.vim
@@ -1,113 +0,0 @@
-" _ _ _ _ -"(_)_ __ (_) |___ _(_)_ __ ___ -"| | '_ \| | __\ \ / / | '_ ` _ \ -"| | | | | | |_ \ V /| | | | | | | -"|_|_| |_|_|\__(_)_/ |_|_| |_| |_| -" - - -call plug#begin() -Plug 'jiangmiao/auto-pairs' -Plug 'airblade/vim-gitgutter' -Plug 'git@fern:vim/vim-colors-plain' -Plug 'dbeniamine/vim-mail', { 'for': ['mail'] } -Plug 'tpope/vim-surround' -Plug 'plasticboy/vim-markdown', { 'for': ['text', 'markdown'] } -Plug 'git@fern:vim/better-text-objs' -Plug 'ervandew/supertab' -Plug 'wellle/targets.vim' -Plug 'tpope/vim-rsi' -Plug 'zah/nim.vim', { 'for': ['nim'] } -call plug#end() - -augroup restorecursor - autocmd BufReadPost * - \ if line("'\"") > 1 && line("'\"") <= line("$") | - \ execute "normal! g`\"" | - \ endif -augroup END - -" basic settings -set swapfile -set dir=/tmp -set nonumber -set smartcase -syntax on -filetype plugin indent on -set laststatus=2 -set hlsearch -set incsearch -set ignorecase -set scrolloff=12 -set rtp+=~/.fzf -set timeout timeoutlen=3000 ttimeoutlen=100 -set undodir=~/.vim/undodir -set nowrap -set nocursorline -set nofoldenable -set conceallevel=2 -set mouse=a -set wildmenu -set shiftwidth=4 " indent = 4 spaces -set tabstop=4 " tab = 4 spaces -set expandtab -set softtabstop=4 " backspace through spaces -set nocompatible -set noshowmode -set clipboard=unnamedplus -set hidden - -" wildcard ignores -set wildignore+=.git,.hg,.svn -set wildignore+=*.aux,*.out,*.toc -set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest,*.rbc,*.class -set wildignore+=*.ai,*.bmp,*.gif,*.ico,*.jpg,*.jpeg,*.png,*.psd,*.webp -set wildignore+=*.avi,*.divx,*.mp4,*.webm,*.mov,*.m2ts,*.mkv,*.vob,*.mpg,*.mpeg -set wildignore+=*.mp3,*.oga,*.ogg,*.wav,*.flac -set wildignore+=*.eot,*.otf,*.ttf,*.woff -set wildignore+=*.doc,*.pdf,*.cbr,*.cbz -set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb -set wildignore+=*.swp,.lock,.DS_Store,._* - -" colorscheme -colorscheme plain -set background=dark - -" git gutter settings -let g:gitgutter_override_sign_column_highlight = 0 -let g:gitgutter_sign_added = '+' -let g:gitgutter_sign_modified = '±' -let g:gitgutter_sign_removed = '-' -let g:gitgutter_sign_removed_first_line = '^' -let g:gitgutter_sign_modified_removed = '#' - -" default to text for files without extensions -au BufNewFile,BufRead * if &ft == '' | set ft=text | endif - -" comments are italicized -hi Comment cterm=italic -" color overrides -hi CursorLine ctermbg=none - -augroup setMail - autocmd! - autocmd BufRead,BufNewFile /tmp/nail-* setlocal ft=mail - autocmd BufRead,BufNewFile *s-nail-* setlocal ft=mail -augroup END - -" insert date -abclear -cabbrev dt read !~/bin/date.sh<cr> -cabbrev tm read !date "+\%H:\%M" - -" change cursor -" doesn't actually work :( -if exists('$TMUX') - let &t_SI .= "\ePtmux;\e\e[6 q\e\\" - let &t_EI .= "\ePtmux;\e\e[2 q\e\\" - let &t_SR .= "\ePtmux;\e\e[4 q\e\\" -else - let &t_SI .= "\e[6 q" - let &t_EI .= "\e[2 q" - let &t_SR .= "\e[4 q" -endif
M
darwin/fish/config.fish
→
darwin/fish/config.fish
@@ -20,3 +20,10 @@
# The next line updates PATH for the Google Cloud SDK. if [ -f '/Users/icy/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/Users/icy/Downloads/google-cloud-sdk/path.fish.inc'; end set -g fish_user_paths "/usr/local/opt/node@14/bin" $fish_user_paths + + +# pyenv init +if command -v pyenv 1>/dev/null 2>&1 + pyenv init - | source +end +