diff options
| author | Alec Goncharow <alec.goncharow@gmail.com> | 2021-09-29 17:20:19 -0400 |
|---|---|---|
| committer | Alec Goncharow <alec.goncharow@gmail.com> | 2021-09-29 17:20:19 -0400 |
| commit | 7160915a4916a86f702334adde261256b6da4a21 (patch) | |
| tree | 36b5359fefdb4c1078c76e2dc50b84739428a4f9 /.config | |
| parent | 4b4204a268f99b7ea2ab57fb7cb948263f73dee3 (diff) | |
Mac things
Diffstat (limited to '.config')
| -rw-r--r-- | .config/alacritty/alacritty.yml | 22 | ||||
| -rw-r--r-- | .config/nvim/init.vim | 41 |
2 files changed, 53 insertions, 10 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml new file mode 100644 index 0000000..2c2e741 --- /dev/null +++ b/.config/alacritty/alacritty.yml @@ -0,0 +1,22 @@ +# Font configuration (changes require restart) +font: + # The size to use. + size: 12 + # The normal (roman) font face to use. + normal: + family: JetBrainsMono Nerd Font + # Style can be specified to pick a specific face. + style: Regular + + # The bold font face + bold: + family: JetBrainsMono Nerd Font + # Style can be specified to pick a specific face. + # style: Bold + + # The italic font face + italic: + family: JetBrainsMono Nerd Font + # () + # Style can be specified to pick a specific face. + # style: Italic diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5d83b96..33b4742 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,4 +1,30 @@ set nocompatible " be iMproved, required +" PYTHON PROVIDERS {{{ + +if has('macunix') + +" OSX + +let g:python3_host_prog = '/usr/bin/python3' " -- Set python 3 provider + +" let g:python_host_prog = '/usr/bin/python2' " --- Set python 2 provider + +elseif has('unix') + +" Ubuntu + +let g:python3_host_prog = '/usr/bin/python3' " -------- Set python 3 provider + +" let g:python_host_prog = '/usr/bin/python' " ---------- Set python 2 provider + +elseif has('win32') || has('win64') + +" Window + +endif + +" }}} + " auto-install vim-plug if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ @@ -18,7 +44,7 @@ Plug 'octol/vim-cpp-enhanced-highlight' Plug 'tikhomirov/vim-glsl' " latex Plug 'lervag/vimtex' - +Plug 'morhetz/gruvbox' call plug#end() filetype plugin indent on " required @@ -34,6 +60,7 @@ filetype plugin indent on " required " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line " +colorscheme gruvbox hi clear SignColumn @@ -45,12 +72,7 @@ function! HasPaste() endfunction -if system('uname -s') == "Darwin\n" - set clipboard=unnamed "OSX -else - set clipboard=unnamedplus "Linux -endif - +set clipboard+=unnamedplus " " Copy to clipboard vnoremap <leader>y "+y nnoremap <leader>Y "+yg_ @@ -64,7 +86,7 @@ vnoremap <leader>p "+p vnoremap <leader>P "+P "python with virtualenv support -py << EOF +py3 << EOF import os import sys if 'VIRTUAL_ENV' in os.environ: @@ -202,7 +224,7 @@ highlight LineNr ctermfg=grey let python_highlight_all=1 syntax on -highlight Pmenu ctermfg=cyan ctermbg=black +" highlight Pmenu ctermfg=cyan ctermbg=black let g:ycm_python_binary_path = 'python' let g:ycm_server_python_interpreter = '/usr/bin/python' @@ -229,4 +251,3 @@ let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 -let g:tex_flavor='latex' |
