master
michael 2022-10-31 12:01:00 -07:00
parent ab81ac9889
commit 485c5237dc
3 changed files with 115 additions and 21 deletions

View File

@ -1,5 +1,9 @@
# Environment
![macOS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge&logo=macos&logoColor=F0F0F0)
![Fedora](https://img.shields.io/badge/Fedora-294172?style=for-the-badge&logo=fedora&logoColor=white)
![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)
Here, we may observe the turtlebasket in its natural habitat.
## MacOS
@ -9,7 +13,7 @@ Here, we may observe the turtlebasket in its natural habitat.
- [Hammerspoon](https://www.hammerspoon.org/)
- [Rectangle](https://github.com/rxhanson/Rectanglehttps://github.com/rxhanson/Rectangle)
- [MiddleClick](https://github.com/artginzburg/MiddleClick-BigSur)
- [Scroll Reverser](https://github.com/pilotmoon/Scroll-Reverser)
- [LinearMouse] (https://linearmouse.org/)
- [AltTab MacOS](https://github.com/lwouis/alt-tab-macos)
## Windows

View File

@ -6,6 +6,7 @@
" set lines=32 columns=110
" Preferences
set mouse=a
set encoding=utf-8
set autochdir
set shiftwidth=4
@ -22,38 +23,127 @@ syntax on
cnoreabbrev ge browse confirm e
cnoreabbrev ! aliasrun
" Plugins
" Map leader key to spacebar (like Doom Emacs)
let mapleader = " "
" Vim Plug Plugins
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'
Plug 'flazz/vim-colorschemes'
Plug 'tomlion/vim-solidity'
Plug 'zah/nim.vim'
" Plug 'ycm-core/YouCompleteMe'
Plug 'NLKNguyen/papercolortheme'
Plug 'mangeshrex/everblush.vim'
Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}
" Plug 'nvim-lua/plenary.nvim'
" Plug 'nvim-telescope/telescope.nvim'
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v1.*'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neovim/nvim-lspconfig'
Plug 'dhruvasagar/vim-table-mode'
call plug#end()
" Lua Plugins
" lua require('plugins')
" Theming
set termguicolors
set t_Co=256
set background=dark
colorscheme PaperColor
colorscheme everblush
let g:airline_powerline_fonts = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" Navigation & Shortcuts
" inoremap <C-c> "+y
" inoremap <C-v> <C-o>:"+p<CR>
" Neovide theming
if exists("g:neovide")
set guifont=CaskaydiaCove\ Nerd\ Font:h12.5
endif
" Navigation & Shortcuts
" Open file tree
nnoremap <Leader>op :CHADopen<CR>
nnoremap <C-t> :CHADopen<CR>
" Toggle terminal buffer
nnoremap <Leader>ot :ToggleTerm<CR>
nnoremap <C-`> :ToggleTerm<CR>
tnoremap <C-`> <C-\><C-n>:ToggleTerm<CR>
" Force kill current buffer
nnoremap <Leader>bk :bp<bar>sp<bar>bn<bar>bd!<CR>
nnoremap <C-k> :bp<bar>sp<bar>bn<bar>bd!<CR>
" Close the current window
nnoremap <Leader>wd :close<CR>
nnoremap <Leader>wk :close<CR>
nnoremap <C-x> :close<CR>
nnoremap <C-w>d :close<CR>
" Close the current tab
nnoremap <Leader>td :tabclose<CR>
nnoremap <Leader>tk :tabclose<CR>
" map <Leader>bk :bd!<CR>
" Reload config
nnoremap <silent> <Leader>rr :source $MYVIMRC<cr>
" New buffer
nnoremap <Leader>bn :enew<CR>
nnoremap <Leader>bc :enew<CR>
nnoremap <C-b>n :enew<CR>
" Global file search
" nnoremap <silent> <Leader><Leader>
" Quit editor
nnoremap <silent> <Leader>qq :qa!<CR>
" Buffer switching
nnoremap <Leader>b1 :buffer 1<CR>
nnoremap <Leader>b2 :buffer 2<CR>
nnoremap <Leader>b3 :buffer 3<CR>
nnoremap <Leader>b4 :buffer 4<CR>
nnoremap <Leader>b5 :buffer 5<CR>
nnoremap <Leader>b6 :buffer 6<CR>
nnoremap <Leader>b7 :buffer 7<CR>
nnoremap <Leader>b8 :buffer 8<CR>
nnoremap <Leader>b9 :buffer 9<CR>
nnoremap <A-1> :buffer 1<CR>
nnoremap <A-2> :buffer 2<CR>
nnoremap <A-3> :buffer 3<CR>
nnoremap <A-4> :buffer 4<CR>
nnoremap <A-5> :buffer 5<CR>
nnoremap <A-6> :buffer 6<CR>
nnoremap <A-7> :buffer 7<CR>
nnoremap <A-8> :buffer 8<CR>
nnoremap <A-9> :buffer 9<CR>
nnoremap <C-l> :bnext<CR>
nnoremap <C-h> :bprev<CR>
" Tab switching
nnoremap <Leader>t1 1gt<CR>
nnoremap <Leader>t2 2gt<CR>
nnoremap <Leader>t3 3gt<CR>
nnoremap <Leader>t4 4gt<CR>
nnoremap <Leader>t5 5gt<CR>
nnoremap <Leader>t6 6gt<CR>
nnoremap <Leader>t7 7gt<CR>
nnoremap <Leader>t8 8gt<CR>
nnoremap <Leader>t9 9gt<CR>
nnoremap <C-S-l> :tabnext<CR>
nnoremap <C-S-h> :tabprev<CR>
" Configure coc.nvim
" let g:coc_node_path = trim(system('which node'))
let g:coc_node_path='/opt/homebrew/bin/node'
" Telescope.nvim options
" :Telescope |<tab>
" :Telescope find_files
" Pandoc file commands
" function! PandocCompileMd()
" nnoremap <Leader>pp !pandoc compile <CR>
" endfunction
nnoremap <A-1> 1gt
nnoremap <A-2> 2gt
nnoremap <A-3> 3gt
nnoremap <A-4> 4gt
nnoremap <A-5> 5gt
nnoremap <A-6> 6gt
nnoremap <A-7> 7gt
nnoremap <A-8> 8gt
nnoremap <A-9> 9gt
nnoremap <A-0> 10gt-

View File