From 7160915a4916a86f702334adde261256b6da4a21 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Wed, 29 Sep 2021 17:20:19 -0400 Subject: Mac things --- .config/alacritty/alacritty.yml | 22 ++++++++++++++++++++++ .config/nvim/init.vim | 41 +++++++++++++++++++++++++++++++---------- .gitignore | 1 + 3 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 .config/alacritty/alacritty.yml create mode 100644 .gitignore 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 y "+y nnoremap Y "+yg_ @@ -64,7 +86,7 @@ vnoremap p "+p vnoremap 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' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store -- cgit v1.2.3-70-g09d2